-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
44 lines (44 loc) · 2.06 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
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "1.7.9",
"homepage": "http://filesizejs.com",
"author": {
"name": "Jason Mulligan",
"email": "jason.mulligan@avoidwork.com"
},
"repository": {
"type": "git",
"url": "git://github.com/avoidwork/filesize.js.git"
},
"bugs": {
"url": "https://github.com/avoidwork/filesize.js/issues"
},
"licenses": [
{
"type": "BSD-3",
"url": "https://raw.github.com/avoidwork/filesize.js/master/LICENSE"
}
],
"main": "lib/filesize",
"engines": {
"node": ">= 0.6.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.3.12"
},
"keywords": [
"file",
"filesize",
"size",
"readable",
"filesystem"
],
"readme": "[![build status](https://secure.travis-ci.org/avoidwork/filesize.js.png)](http://travis-ci.org/avoidwork/filesize.js)\n# filesize.js\n\nfilesize.js provides a simple way to get a human readable file size string from a number (float or integer) or string. An optional second parameter is the decimal place to round to (default is 2), or _true_ which triggers Unix style output.\n\n## Examples\n\n``` js\nfilesize(500); // \"3.91Kb\"\nfilesize(500, true); // \"3.9k\"\nfilesize(1500); // \"1.46KB\"\nfilesize(\"1500000000\"); // \"1.40GB\"\nfilesize(\"1500000000\", 0); // \"1GB\"\nfilesize(1212312421412412); // \"1.08PB\"\nfilesize(1212312421412412, true); // \"1.1P\" - shorthand output, similar to *nix \"ls -lh\"\n```\n\n## How can I load filesize.js?\n\nfilesize.js supports AMD loaders (require.js, curl.js, etc.), node.js & npm (npm install filesize), or using a script tag.\n\n## Information\n\n#### License\n\nfilesize.js is licensed under BSD-3 http://www.opensource.org/licenses/BSD-3-Clause\n\n#### Copyright\n\nCopyright (c) 2012, Jason Mulligan <jason.mulligan@avoidwork.com>",
"readmeFilename": "README.md",
"_id": "filesize@1.7.9",
"_from": "filesize@~1.7.9"
}