forked from BrianVaughan/joey_mc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
51 lines (51 loc) · 2.77 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
{
"name": "filesize",
"description": "JavaScript library to generate a human readable String describing the file size",
"version": "1.10.0",
"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.4.0"
},
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-cli": "~0.1.6",
"grunt-exec": "~0.4",
"grunt-sed": "~0.1",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-jshint": "~0.1",
"grunt-contrib-nodeunit": "~0.1.2",
"grunt-contrib-watch": "~0.2"
},
"keywords": [
"file",
"filesize",
"size",
"readable",
"file system"
],
"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. An optional third parameter lets you disable `bit` sizes, e.g. \"kb\".\n\n## Examples\n\n1.10.0 switched to base 10, all previous versions use base 2.\n\n```javascript\nfilesize(500); // \"4.00 Kb\"\nfilesize(500, true); // \"4.0k\"\nfilesize(1500); // \"1.50 KB\"\nfilesize(\"1500000000\"); // \"1.50 GB\"\nfilesize(\"1500000000\", 0); // \"2GB\"\nfilesize(1212312421412412); // \"1.21 PB PB\"\nfilesize(1212312421412412, true); // \"1.1P\" - shorthand output, similar to \"ls -h\"\nfilesize(265318, 2, false) // \"265.32 kB\" - disabled `bit` sizes with third argument\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## Support\n\nIf you're having problems with using the project, use the support forum at CodersClan.\n\n<a href=\"http://codersclan.net/forum/index.php?repo_id=11\"><img src=\"http://www.codersclan.net/graphics/getSupport_blue_big.png\" width=\"160\"></a>\n\n## License\n\nfilesize.js is licensed under BSD-3 https://raw.github.com/avoidwork/filesize.js/master/LICENSE\n\n## Copyright\n\nCopyright (c) 2013, Jason Mulligan <jason.mulligan@avoidwork.com>\n",
"readmeFilename": "README.md",
"_id": "filesize@1.10.0",
"_from": "filesize@~1.10.0"
}