-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
56 lines (56 loc) · 1.97 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
"name": "pretty-bytes",
"version": "0.1.2",
"description": "Convert bytes to a human readable string: 1337 → 1.34 kB",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/pretty-bytes"
},
"main": "pretty-bytes.js",
"bin": {
"pretty-bytes": "cli.js"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"pretty-bytes.js",
"cli.js"
],
"keywords": [
"cli",
"bin",
"browser",
"pretty",
"bytes",
"byte",
"filesize",
"size",
"file",
"human",
"humanized",
"readable",
"si",
"data"
],
"devDependencies": {
"mocha": "*"
},
"readme": "# pretty-bytes [![Build Status](https://travis-ci.org/sindresorhus/pretty-bytes.svg?branch=master)](https://travis-ci.org/sindresorhus/pretty-bytes)\n\n> Convert bytes to a human readable string: `1337` → `1.34 kB`\n\nUseful for displaying file sizes for humans.\n\n-\n\n*Note that it uses base-10 (eg. kilobyte). \n[Read about the difference between kilobyte and kibibyte.](http://pacoup.com/2009/05/26/kb-kb-kib-whats-up-with-that/)*\n\n\n## Install\n\n```sh\n$ npm install --save pretty-bytes\n```\n\n```sh\n$ bower install --save pretty-bytes\n```\n\n```sh\n$ component install sindresorhus/pretty-bytes\n```\n\n\n## Usage\n\n```js\nprettyBytes(1337);\n//=> '1.34 kB'\n\nprettyBytes(100);\n//=> '100 B'\n```\n\n\n## CLI\n\n```bash\n$ npm install --global pretty-bytes\n```\n\n```bash\n$ pretty-bytes 1337\n1.34 kB\n```\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/sindresorhus/pretty-bytes/issues"
},
"homepage": "https://github.com/sindresorhus/pretty-bytes",
"_id": "pretty-bytes@0.1.2",
"_from": "pretty-bytes@^0.1.0"
}