{ "_id": "bytes", "_rev": "61-0f3b6358b5552b519a0b72c47a77828d", "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "dist-tags": { "latest": "3.1.0" }, "versions": { "0.0.1": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte string parser (5mb etc)", "version": "0.0.1", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "_id": "bytes@0.0.1", "optionalDependencies": {}, "engines": { "node": "*" }, "_engineSupported": true, "_npmVersion": "1.1.24", "_nodeVersion": "v0.6.19", "_defaultsLoaded": true, "dist": { "shasum": "2a76c866ba90e6fd2641ab5c9fdb6c4e8b4015f7", "tarball": "https://registry.npmjs.org/bytes/-/bytes-0.0.1.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.1.0": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte size string parser / serializer", "version": "0.1.0", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "bytes": "index.js" } }, "_id": "bytes@0.1.0", "dist": { "shasum": "c574812228126d6369d1576925a8579db3f8e5a2", "tarball": "https://registry.npmjs.org/bytes/-/bytes-0.1.0.tgz" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.2.0": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte size string parser / serializer", "version": "0.2.0", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "_id": "bytes@0.2.0", "dist": { "shasum": "aad33ec14e3dc2ca74e8e7d451f9ba053ad4f7a0", "tarball": "https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz" }, "_npmVersion": "1.1.64", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.2.1": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte size string parser / serializer", "version": "0.2.1", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "_id": "bytes@0.2.1", "dist": { "shasum": "555b08abcb063f8975905302523e4cd4ffdfdf31", "tarball": "https://registry.npmjs.org/bytes/-/bytes-0.2.1.tgz" }, "_from": ".", "_npmVersion": "1.2.14", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "0.3.0": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte size string parser / serializer", "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js.git" }, "version": "0.3.0", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@0.3.0", "dist": { "shasum": "78e2e0e28c7f9c7b988ea8aee0db4d5fa9941935", "tarball": "https://registry.npmjs.org/bytes/-/bytes-0.3.0.tgz" }, "_from": ".", "_npmVersion": "1.3.15", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "1.0.0": { "name": "bytes", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "description": "byte size string parser / serializer", "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js.git" }, "version": "1.0.0", "main": "index.js", "dependencies": {}, "devDependencies": { "mocha": "*", "should": "*" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@1.0.0", "dist": { "shasum": "3569ede8ba34315fab99c3e92cb04c7220de1fa8", "tarball": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz" }, "_from": ".", "_npmVersion": "1.4.3", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {} }, "2.0.0": { "name": "bytes", "version": "2.0.0", "description": "Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js.git" }, "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "main": "index.js", "component": { "scripts": { "bytes/index.js": "index.js" } }, "scripts": { "test": "node_modules/mocha/bin/mocha --check-leaks" }, "dependencies": { "node.extend": "*" }, "devDependencies": { "chai": "*", "mocha": "*" }, "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "michaelsanford", "url": "https://medium.com/@msanford" }, { "name": "vladikoff", "email": "github@vf.io", "url": "http://vf.io" }, { "name": "justindeguzman", "url": "http://justindeguzman.net" }, { "name": "mixu", "url": "http://mixu.net" }, { "name": "theofidry", "email": "theo.fidry@gmail.com", "url": "https://github.com/theofidry" } ], "license": "MIT", "gitHead": "6b0e590f1aa83a43b20b4678441cba883f06d6fd", "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.0.0", "_shasum": "37feb25b3478674e7b78a16720826b033459a6ff", "_from": ".", "_npmVersion": "2.3.0", "_nodeVersion": "0.11.16", "_npmUser": { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "dist": { "shasum": "37feb25b3478674e7b78a16720826b033459a6ff", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.0.tgz" }, "directories": {} }, "2.0.1": { "name": "bytes", "version": "2.0.1", "description": "Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js.git" }, "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "main": "index.js", "component": { "scripts": { "bytes/index.js": "index.js" } }, "scripts": { "test": "mocha --check-leaks --reporter spec" }, "devDependencies": { "chai": "*", "mocha": "*" }, "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "michaelsanford", "url": "https://medium.com/@msanford" }, { "name": "vladikoff", "email": "github@vf.io", "url": "http://vf.io" }, { "name": "justindeguzman", "url": "http://justindeguzman.net" }, { "name": "mixu", "url": "http://mixu.net" }, { "name": "theofidry", "email": "theo.fidry@gmail.com", "url": "https://github.com/theofidry" } ], "files": [ "lib/", "History.md", "LICENSE", "Readme.md", "index.js" ], "license": "MIT", "gitHead": "8c00b7361081cbd9bbefdeaac387cfa3483ee584", "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.0.1", "_shasum": "673743059be43d929f9c225dd7363ee0f8b15d97", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "dist": { "shasum": "673743059be43d929f9c225dd7363ee0f8b15d97", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.1.tgz" }, "directories": {} }, "2.0.2": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.0.2", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "*" }, "files": [ "lib/", "History.md", "LICENSE", "Readme.md", "index.js" ], "scripts": { "test": "mocha --check-leaks --reporter spec" }, "gitHead": "613ebfa44c8e42ae107833e1a587f6a3349f6a64", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.0.2", "_shasum": "580fea1111c2df039f2644ff917ce4010501184e", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "dist": { "shasum": "580fea1111c2df039f2644ff917ce4010501184e", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.2.tgz" }, "directories": {} }, "2.1.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.1.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "*" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "scripts": { "test": "mocha --check-leaks --reporter spec" }, "gitHead": "86e4520cc369b34866154a53344ca50b2bb5ddcd", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.1.0", "_shasum": "ac93c410e2ffc9cc7cf4b464b38289067f5e47b4", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "dist": { "shasum": "ac93c410e2ffc9cc7cf4b464b38289067f5e47b4", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz" }, "directories": {} }, "2.2.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.2.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "1.21.5" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "scripts": { "test": "mocha --check-leaks --reporter spec" }, "gitHead": "509a01a5472b9163ae5a7db41e2d6bd986fdf595", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.2.0", "_shasum": "fd35464a403f6f9117c2de3609ecff9cae000588", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "maintainers": [ { "name": "tjholowaychuk", "email": "tj@vision-media.ca" }, { "name": "dougwilson", "email": "doug@somethingdoug.com" } ], "dist": { "shasum": "fd35464a403f6f9117c2de3609ecff9cae000588", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz" }, "directories": {} }, "2.3.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.3.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "git+https://github.com/visionmedia/bytes.js.git" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "1.21.5" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "scripts": { "test": "mocha --check-leaks --reporter spec" }, "gitHead": "c8be41b24b04e04992d5918356d5a4dd35fbf805", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js#readme", "_id": "bytes@2.3.0", "_shasum": "d5b680a165b6201739acb611542aabc2d8ceb070", "_from": ".", "_npmVersion": "2.14.7", "_nodeVersion": "4.2.3", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "shasum": "d5b680a165b6201739acb611542aabc2d8ceb070", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.3.0.tgz" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "_npmOperationalInternal": { "host": "packages-6-west.internal.npmjs.com", "tmp": "tmp/bytes-2.3.0.tgz_1455595208428_0.5990735022351146" }, "directories": {} }, "2.4.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.4.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "https://github.com/visionmedia/bytes.js" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "1.21.5" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "scripts": { "test": "mocha --check-leaks --reporter spec" }, "gitHead": "2a598442bdfa796df8d01a96cc54495cda550e70", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js", "_id": "bytes@2.4.0", "_shasum": "7d97196f9d5baf7f6935e25985549edd2a6c2339", "_from": ".", "_npmVersion": "1.4.28", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "dist": { "shasum": "7d97196f9d5baf7f6935e25985549edd2a6c2339", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz" }, "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/bytes-2.4.0.tgz_1464812473023_0.6271433881483972" }, "directories": {} }, "2.5.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "2.5.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "git+https://github.com/visionmedia/bytes.js.git" }, "component": { "scripts": { "bytes/index.js": "index.js" } }, "devDependencies": { "mocha": "1.21.5", "nyc": "10.1.2" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "engines": { "node": ">= 0.6" }, "scripts": { "test": "mocha --check-leaks --reporter spec", "test-ci": "nyc --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" }, "gitHead": "a4b9af2bf289175f12b3538eb172f2489844b1ec", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js#readme", "_id": "bytes@2.5.0", "_shasum": "4c9423ea2d252c270c41b2bdefeff9bb6b62c06a", "_from": ".", "_npmVersion": "2.15.11", "_nodeVersion": "4.7.3", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "shasum": "4c9423ea2d252c270c41b2bdefeff9bb6b62c06a", "tarball": "https://registry.npmjs.org/bytes/-/bytes-2.5.0.tgz" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/bytes-2.5.0.tgz_1490416399283_0.2922299497295171" }, "directories": {} }, "3.0.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "3.0.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "git+https://github.com/visionmedia/bytes.js.git" }, "devDependencies": { "mocha": "2.5.3", "nyc": "10.3.2" }, "files": [ "History.md", "LICENSE", "Readme.md", "index.js" ], "engines": { "node": ">= 0.8" }, "scripts": { "test": "mocha --check-leaks --reporter spec", "test-ci": "nyc --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" }, "gitHead": "25d4cb488aea3b637448a85fa297d9e65b4b4e04", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js#readme", "_id": "bytes@3.0.0", "_shasum": "d32815404d689699f85a4ea4fa8755dd13a96048", "_from": ".", "_npmVersion": "3.10.10", "_nodeVersion": "6.11.1", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "shasum": "d32815404d689699f85a4ea4fa8755dd13a96048", "tarball": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/bytes-3.0.0.tgz_1504216364188_0.5158762519713491" }, "directories": {} }, "3.1.0": { "name": "bytes", "description": "Utility to parse a string bytes to bytes and vice-versa", "version": "3.1.0", "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT", "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "repository": { "type": "git", "url": "git+https://github.com/visionmedia/bytes.js.git" }, "devDependencies": { "eslint": "5.12.1", "mocha": "5.2.0", "nyc": "13.1.0" }, "engines": { "node": ">= 0.8" }, "scripts": { "lint": "eslint .", "test": "mocha --check-leaks --reporter spec", "test-ci": "nyc --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" }, "gitHead": "49ac709cb210af60e35957c069bb2cd07f335cfd", "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "homepage": "https://github.com/visionmedia/bytes.js#readme", "_id": "bytes@3.1.0", "_npmVersion": "6.4.1", "_nodeVersion": "8.15.0", "_npmUser": { "name": "dougwilson", "email": "doug@somethingdoug.com" }, "dist": { "integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", "shasum": "f6cf7933a360e0588fa9fde85651cdc7f805d1f6", "tarball": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", "fileCount": 5, "unpackedSize": 10997, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcR/D3CRA9TVsSAnZWagAAKxQP/jm6fmIJFjJzEpnOmOQu\n4tOWELz5luZxpItaWETqZxSAqm0cU4PiqWdkzVV7KJPgKROz6IgtqW4gvya1\nUcI1LlVSQ8zNlu0UiDLOL8yz/MKjeOEdDppglxHN7Dim+tvUVu0hF/4uhuOc\nhAG1ybdaijfeGN6uBM9P6TiqQUpT2AFuS4BUfZoAW4Gfq8fYUG5RW0KsicZB\nJ0IVRreG3KXu9BOoFa+PiGXX+LIG45yE7vMNXbWULyE5vnkBdJJK8L45lFPJ\nSHGKqYK/WIyFEnDBEQgXK9pDsbz9UvPRJFqRfrHyAkfifpTekhpKTNvaj+bC\nvuokTgppKHo8h3l3wFpXKO/Zb/UQFYH1N0dKFO+NSv4gR47Bez6O2Q0Y1ZdE\nHJmZRrFCRzr/m1VT3fZmDwDPJxjZ5kyATliI1lttyOInGlVJg+VR0XFrn0d4\nYOSKxgqTS5jIOPBNZgvt7lYGdBt9TnGk7VYMEdwHm9jfx4Hdj2aEhj3x5mss\nxlVX6q1+5Qg0Am5EWgRMYnODh9Q0oLH4Zaxi4lJr+hSp/6Ln+0IXPNcgT0lj\n+77CxeAxOQG6Aj5G6H5e45x2CGCavny5rsR133vCGBnHGuRcNOSvgZ3BmUvH\n2JB4YSQCAxX/Ku6phJepP0Ktv8gKMWohF+AM2b4oHlUnW4Ny6B7w7PMJoscM\nlFdb\r\n=oAEj\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/bytes_3.1.0_1548218614714_0.7781245590502732" }, "_hasShrinkwrap": false } }, "readme": "# Bytes utility\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Build Status][travis-image]][travis-url]\n[![Test Coverage][coveralls-image]][coveralls-url]\n\nUtility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.\n\n## Installation\n\nThis is a [Node.js](https://nodejs.org/en/) module available through the\n[npm registry](https://www.npmjs.com/). Installation is done using the\n[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):\n\n```bash\n$ npm install bytes\n```\n\n## Usage\n\n```js\nvar bytes = require('bytes');\n```\n\n#### bytes.format(number value, [options]): string|null\n\nFormat the given value in bytes into a string. If the value is negative, it is kept as such. If it is a float, it is\n rounded.\n\n**Arguments**\n\n| Name | Type | Description |\n|---------|----------|--------------------|\n| value | `number` | Value in bytes |\n| options | `Object` | Conversion options |\n\n**Options**\n\n| Property | Type | Description |\n|-------------------|--------|-----------------------------------------------------------------------------------------|\n| decimalPlaces | `number`|`null` | Maximum number of decimal places to include in output. Default value to `2`. |\n| fixedDecimals | `boolean`|`null` | Whether to always display the maximum number of decimal places. Default value to `false` |\n| thousandsSeparator | `string`|`null` | Example of values: `' '`, `','` and `.`... Default value to `''`. |\n| unit | `string`|`null` | The unit in which the result will be returned (B/KB/MB/GB/TB). Default value to `''` (which means auto detect). |\n| unitSeparator | `string`|`null` | Separator to use between number and unit. Default value to `''`. |\n\n**Returns**\n\n| Name | Type | Description |\n|---------|------------------|-------------------------------------------------|\n| results | `string`|`null` | Return null upon error. String value otherwise. |\n\n**Example**\n\n```js\nbytes(1024);\n// output: '1KB'\n\nbytes(1000);\n// output: '1000B'\n\nbytes(1000, {thousandsSeparator: ' '});\n// output: '1 000B'\n\nbytes(1024 * 1.7, {decimalPlaces: 0});\n// output: '2KB'\n\nbytes(1024, {unitSeparator: ' '});\n// output: '1 KB'\n\n```\n\n#### bytes.parse(string|number value): number|null\n\nParse the string value into an integer in bytes. If no unit is given, or `value`\nis a number, it is assumed the value is in bytes.\n\nSupported units and abbreviations are as follows and are case-insensitive:\n\n * `b` for bytes\n * `kb` for kilobytes\n * `mb` for megabytes\n * `gb` for gigabytes\n * `tb` for terabytes\n * `pb` for petabytes\n\nThe units are in powers of two, not ten. This means 1kb = 1024b according to this parser.\n\n**Arguments**\n\n| Name | Type | Description |\n|---------------|--------|--------------------|\n| value | `string`|`number` | String to parse, or number in bytes. |\n\n**Returns**\n\n| Name | Type | Description |\n|---------|-------------|-------------------------|\n| results | `number`|`null` | Return null upon error. Value in bytes otherwise. |\n\n**Example**\n\n```js\nbytes('1KB');\n// output: 1024\n\nbytes('1024');\n// output: 1024\n\nbytes(1024);\n// output: 1KB\n```\n\n## License \n\n[MIT](LICENSE)\n\n[coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master\n[coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master\n[downloads-image]: https://badgen.net/npm/dm/bytes\n[downloads-url]: https://npmjs.org/package/bytes\n[npm-image]: https://badgen.net/npm/node/bytes\n[npm-url]: https://npmjs.org/package/bytes\n[travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master\n[travis-url]: https://travis-ci.org/visionmedia/bytes.js\n", "maintainers": [ { "name": "dougwilson", "email": "doug@somethingdoug.com" }, { "name": "tjholowaychuk", "email": "tj@vision-media.ca" } ], "time": { "modified": "2019-01-23T04:43:37.353Z", "created": "2012-06-11T15:44:32.849Z", "0.0.1": "2012-06-11T15:44:34.095Z", "0.1.0": "2012-08-17T19:26:03.899Z", "0.2.0": "2012-10-28T07:40:18.125Z", "0.2.1": "2013-04-01T18:48:09.764Z", "0.3.0": "2014-03-20T01:08:49.952Z", "1.0.0": "2014-05-05T23:52:20.318Z", "2.0.0": "2015-04-12T21:04:54.307Z", "2.0.1": "2015-05-08T04:43:03.189Z", "2.0.2": "2015-05-21T03:19:26.235Z", "2.1.0": "2015-05-22T02:55:58.116Z", "2.2.0": "2015-11-14T01:44:07.135Z", "2.3.0": "2016-02-16T04:00:12.239Z", "2.4.0": "2016-06-01T20:21:14.269Z", "2.5.0": "2017-03-25T04:33:21.150Z", "3.0.0": "2017-08-31T21:52:45.175Z", "3.1.0": "2019-01-23T04:43:34.815Z" }, "author": { "name": "TJ Holowaychuk", "email": "tj@vision-media.ca", "url": "http://tjholowaychuk.com" }, "users": { "m42am": true, "purywp": true, "cshao": true, "qqqppp9998": true, "honzajde": true, "fotooo": true, "moimikey": true, "dpanthula": true, "x4devs": true, "snowdream": true, "puranjayjain": true, "ta2edchimp": true, "wgerven": true, "seangenabe": true, "shaomingquan": true, "domjtalbot": true, "heartnett": true, "ahmed-dinar": true, "mlm": true, "shuoshubao": true, "yinfxs": true, "edwardxyt": true, "ccastelli": true, "luiscauro": true, "zhenguo.zhao": true }, "readmeFilename": "Readme.md", "homepage": "https://github.com/visionmedia/bytes.js#readme", "repository": { "type": "git", "url": "git+https://github.com/visionmedia/bytes.js.git" }, "bugs": { "url": "https://github.com/visionmedia/bytes.js/issues" }, "keywords": [ "byte", "bytes", "utility", "parse", "parser", "convert", "converter" ], "contributors": [ { "name": "Jed Watson", "email": "jed.watson@me.com" }, { "name": "Théo FIDRY", "email": "theo.fidry@gmail.com" } ], "license": "MIT" }