comunicationLeap/node_modules/bytes/Readme.md
node_modules/bytes/Readme.mdRaw
1# node-bytes
2
3 Byte string parser / formatter.
4
5## Example:
6
7```js
8bytes('1kb')
9// => 1024
10
11bytes('2mb')
12// => 2097152
13
14bytes('1gb')
15// => 1073741824
16
17bytes(1073741824)
18// => 1gb
19```
20
21## Installation
22
23```
24$ npm install bytes
25$ component install visionmedia/bytes.js
26```
27
28## License
29
30(The MIT License)
31
32Copyright (c) 2012 TJ Holowaychuk <tj@vision-media.ca>
33
34Permission is hereby granted, free of charge, to any person obtaining
35a copy of this software and associated documentation files (the
36'Software'), to deal in the Software without restriction, including
37without limitation the rights to use, copy, modify, merge, publish,
38distribute, sublicense, and/or sell copies of the Software, and to
39permit persons to whom the Software is furnished to do so, subject to
40the following conditions:
41
42The above copyright notice and this permission notice shall be
43included in all copies or substantial portions of the Software.
44
45THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
46EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
47MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
48IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
49CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
50TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
51SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.