| 1 |
{ |
| 2 |
"_id": "bytes", |
| 3 |
"_rev": "61-0f3b6358b5552b519a0b72c47a77828d", |
| 4 |
"name": "bytes", |
| 5 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "3.1.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.1": { |
| 11 |
"name": "bytes", |
| 12 |
"author": { |
| 13 |
"name": "TJ Holowaychuk", |
| 14 |
"email": "[email protected]", |
| 15 |
"url": "http://tjholowaychuk.com" |
| 16 |
}, |
| 17 |
"description": "byte string parser (5mb etc)", |
| 18 |
"version": "0.0.1", |
| 19 |
"main": "index.js", |
| 20 |
"dependencies": {}, |
| 21 |
"devDependencies": { |
| 22 |
"mocha": "*", |
| 23 |
"should": "*" |
| 24 |
}, |
| 25 |
"_npmUser": { |
| 26 |
"name": "tjholowaychuk", |
| 27 |
"email": "[email protected]" |
| 28 |
}, |
| 29 |
"_id": "[email protected]", |
| 30 |
"optionalDependencies": {}, |
| 31 |
"engines": { |
| 32 |
"node": "*" |
| 33 |
}, |
| 34 |
"_engineSupported": true, |
| 35 |
"_npmVersion": "1.1.24", |
| 36 |
"_nodeVersion": "v0.6.19", |
| 37 |
"_defaultsLoaded": true, |
| 38 |
"dist": { |
| 39 |
"shasum": "2a76c866ba90e6fd2641ab5c9fdb6c4e8b4015f7", |
| 40 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-0.0.1.tgz" |
| 41 |
}, |
| 42 |
"maintainers": [ |
| 43 |
{ |
| 44 |
"name": "tjholowaychuk", |
| 45 |
"email": "[email protected]" |
| 46 |
} |
| 47 |
], |
| 48 |
"directories": {} |
| 49 |
}, |
| 50 |
"0.1.0": { |
| 51 |
"name": "bytes", |
| 52 |
"author": { |
| 53 |
"name": "TJ Holowaychuk", |
| 54 |
"email": "[email protected]", |
| 55 |
"url": "http://tjholowaychuk.com" |
| 56 |
}, |
| 57 |
"description": "byte size string parser / serializer", |
| 58 |
"version": "0.1.0", |
| 59 |
"main": "index.js", |
| 60 |
"dependencies": {}, |
| 61 |
"devDependencies": { |
| 62 |
"mocha": "*", |
| 63 |
"should": "*" |
| 64 |
}, |
| 65 |
"component": { |
| 66 |
"scripts": { |
| 67 |
"bytes": "index.js" |
| 68 |
} |
| 69 |
}, |
| 70 |
"_id": "[email protected]", |
| 71 |
"dist": { |
| 72 |
"shasum": "c574812228126d6369d1576925a8579db3f8e5a2", |
| 73 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-0.1.0.tgz" |
| 74 |
}, |
| 75 |
"maintainers": [ |
| 76 |
{ |
| 77 |
"name": "tjholowaychuk", |
| 78 |
"email": "[email protected]" |
| 79 |
} |
| 80 |
], |
| 81 |
"directories": {} |
| 82 |
}, |
| 83 |
"0.2.0": { |
| 84 |
"name": "bytes", |
| 85 |
"author": { |
| 86 |
"name": "TJ Holowaychuk", |
| 87 |
"email": "[email protected]", |
| 88 |
"url": "http://tjholowaychuk.com" |
| 89 |
}, |
| 90 |
"description": "byte size string parser / serializer", |
| 91 |
"version": "0.2.0", |
| 92 |
"main": "index.js", |
| 93 |
"dependencies": {}, |
| 94 |
"devDependencies": { |
| 95 |
"mocha": "*", |
| 96 |
"should": "*" |
| 97 |
}, |
| 98 |
"_id": "[email protected]", |
| 99 |
"dist": { |
| 100 |
"shasum": "aad33ec14e3dc2ca74e8e7d451f9ba053ad4f7a0", |
| 101 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-0.2.0.tgz" |
| 102 |
}, |
| 103 |
"_npmVersion": "1.1.64", |
| 104 |
"_npmUser": { |
| 105 |
"name": "tjholowaychuk", |
| 106 |
"email": "[email protected]" |
| 107 |
}, |
| 108 |
"maintainers": [ |
| 109 |
{ |
| 110 |
"name": "tjholowaychuk", |
| 111 |
"email": "[email protected]" |
| 112 |
} |
| 113 |
], |
| 114 |
"directories": {} |
| 115 |
}, |
| 116 |
"0.2.1": { |
| 117 |
"name": "bytes", |
| 118 |
"author": { |
| 119 |
"name": "TJ Holowaychuk", |
| 120 |
"email": "[email protected]", |
| 121 |
"url": "http://tjholowaychuk.com" |
| 122 |
}, |
| 123 |
"description": "byte size string parser / serializer", |
| 124 |
"version": "0.2.1", |
| 125 |
"main": "index.js", |
| 126 |
"dependencies": {}, |
| 127 |
"devDependencies": { |
| 128 |
"mocha": "*", |
| 129 |
"should": "*" |
| 130 |
}, |
| 131 |
"component": { |
| 132 |
"scripts": { |
| 133 |
"bytes/index.js": "index.js" |
| 134 |
} |
| 135 |
}, |
| 136 |
"_id": "[email protected]", |
| 137 |
"dist": { |
| 138 |
"shasum": "555b08abcb063f8975905302523e4cd4ffdfdf31", |
| 139 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-0.2.1.tgz" |
| 140 |
}, |
| 141 |
"_from": ".", |
| 142 |
"_npmVersion": "1.2.14", |
| 143 |
"_npmUser": { |
| 144 |
"name": "tjholowaychuk", |
| 145 |
"email": "[email protected]" |
| 146 |
}, |
| 147 |
"maintainers": [ |
| 148 |
{ |
| 149 |
"name": "tjholowaychuk", |
| 150 |
"email": "[email protected]" |
| 151 |
} |
| 152 |
], |
| 153 |
"directories": {} |
| 154 |
}, |
| 155 |
"0.3.0": { |
| 156 |
"name": "bytes", |
| 157 |
"author": { |
| 158 |
"name": "TJ Holowaychuk", |
| 159 |
"email": "[email protected]", |
| 160 |
"url": "http://tjholowaychuk.com" |
| 161 |
}, |
| 162 |
"description": "byte size string parser / serializer", |
| 163 |
"repository": { |
| 164 |
"type": "git", |
| 165 |
"url": "https://github.com/visionmedia/bytes.js.git" |
| 166 |
}, |
| 167 |
"version": "0.3.0", |
| 168 |
"main": "index.js", |
| 169 |
"dependencies": {}, |
| 170 |
"devDependencies": { |
| 171 |
"mocha": "*", |
| 172 |
"should": "*" |
| 173 |
}, |
| 174 |
"component": { |
| 175 |
"scripts": { |
| 176 |
"bytes/index.js": "index.js" |
| 177 |
} |
| 178 |
}, |
| 179 |
"bugs": { |
| 180 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 181 |
}, |
| 182 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 183 |
"_id": "[email protected]", |
| 184 |
"dist": { |
| 185 |
"shasum": "78e2e0e28c7f9c7b988ea8aee0db4d5fa9941935", |
| 186 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-0.3.0.tgz" |
| 187 |
}, |
| 188 |
"_from": ".", |
| 189 |
"_npmVersion": "1.3.15", |
| 190 |
"_npmUser": { |
| 191 |
"name": "tjholowaychuk", |
| 192 |
"email": "[email protected]" |
| 193 |
}, |
| 194 |
"maintainers": [ |
| 195 |
{ |
| 196 |
"name": "tjholowaychuk", |
| 197 |
"email": "[email protected]" |
| 198 |
} |
| 199 |
], |
| 200 |
"directories": {} |
| 201 |
}, |
| 202 |
"1.0.0": { |
| 203 |
"name": "bytes", |
| 204 |
"author": { |
| 205 |
"name": "TJ Holowaychuk", |
| 206 |
"email": "[email protected]", |
| 207 |
"url": "http://tjholowaychuk.com" |
| 208 |
}, |
| 209 |
"description": "byte size string parser / serializer", |
| 210 |
"repository": { |
| 211 |
"type": "git", |
| 212 |
"url": "https://github.com/visionmedia/bytes.js.git" |
| 213 |
}, |
| 214 |
"version": "1.0.0", |
| 215 |
"main": "index.js", |
| 216 |
"dependencies": {}, |
| 217 |
"devDependencies": { |
| 218 |
"mocha": "*", |
| 219 |
"should": "*" |
| 220 |
}, |
| 221 |
"component": { |
| 222 |
"scripts": { |
| 223 |
"bytes/index.js": "index.js" |
| 224 |
} |
| 225 |
}, |
| 226 |
"bugs": { |
| 227 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 228 |
}, |
| 229 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 230 |
"_id": "[email protected]", |
| 231 |
"dist": { |
| 232 |
"shasum": "3569ede8ba34315fab99c3e92cb04c7220de1fa8", |
| 233 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-1.0.0.tgz" |
| 234 |
}, |
| 235 |
"_from": ".", |
| 236 |
"_npmVersion": "1.4.3", |
| 237 |
"_npmUser": { |
| 238 |
"name": "tjholowaychuk", |
| 239 |
"email": "[email protected]" |
| 240 |
}, |
| 241 |
"maintainers": [ |
| 242 |
{ |
| 243 |
"name": "tjholowaychuk", |
| 244 |
"email": "[email protected]" |
| 245 |
} |
| 246 |
], |
| 247 |
"directories": {} |
| 248 |
}, |
| 249 |
"2.0.0": { |
| 250 |
"name": "bytes", |
| 251 |
"version": "2.0.0", |
| 252 |
"description": "Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.", |
| 253 |
"keywords": [ |
| 254 |
"byte", |
| 255 |
"bytes", |
| 256 |
"utility", |
| 257 |
"parse", |
| 258 |
"parser", |
| 259 |
"convert", |
| 260 |
"converter" |
| 261 |
], |
| 262 |
"repository": { |
| 263 |
"type": "git", |
| 264 |
"url": "https://github.com/visionmedia/bytes.js.git" |
| 265 |
}, |
| 266 |
"bugs": { |
| 267 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 268 |
}, |
| 269 |
"main": "index.js", |
| 270 |
"component": { |
| 271 |
"scripts": { |
| 272 |
"bytes/index.js": "index.js" |
| 273 |
} |
| 274 |
}, |
| 275 |
"scripts": { |
| 276 |
"test": "node_modules/mocha/bin/mocha --check-leaks" |
| 277 |
}, |
| 278 |
"dependencies": { |
| 279 |
"node.extend": "*" |
| 280 |
}, |
| 281 |
"devDependencies": { |
| 282 |
"chai": "*", |
| 283 |
"mocha": "*" |
| 284 |
}, |
| 285 |
"author": { |
| 286 |
"name": "TJ Holowaychuk", |
| 287 |
"email": "[email protected]", |
| 288 |
"url": "http://tjholowaychuk.com" |
| 289 |
}, |
| 290 |
"contributors": [ |
| 291 |
{ |
| 292 |
"name": "michaelsanford", |
| 293 |
"url": "https://medium.com/@msanford" |
| 294 |
}, |
| 295 |
{ |
| 296 |
"name": "vladikoff", |
| 297 |
"email": "[email protected]", |
| 298 |
"url": "http://vf.io" |
| 299 |
}, |
| 300 |
{ |
| 301 |
"name": "justindeguzman", |
| 302 |
"url": "http://justindeguzman.net" |
| 303 |
}, |
| 304 |
{ |
| 305 |
"name": "mixu", |
| 306 |
"url": "http://mixu.net" |
| 307 |
}, |
| 308 |
{ |
| 309 |
"name": "theofidry", |
| 310 |
"email": "[email protected]", |
| 311 |
"url": "https://github.com/theofidry" |
| 312 |
} |
| 313 |
], |
| 314 |
"license": "MIT", |
| 315 |
"gitHead": "6b0e590f1aa83a43b20b4678441cba883f06d6fd", |
| 316 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 317 |
"_id": "[email protected]", |
| 318 |
"_shasum": "37feb25b3478674e7b78a16720826b033459a6ff", |
| 319 |
"_from": ".", |
| 320 |
"_npmVersion": "2.3.0", |
| 321 |
"_nodeVersion": "0.11.16", |
| 322 |
"_npmUser": { |
| 323 |
"name": "tjholowaychuk", |
| 324 |
"email": "[email protected]" |
| 325 |
}, |
| 326 |
"maintainers": [ |
| 327 |
{ |
| 328 |
"name": "tjholowaychuk", |
| 329 |
"email": "[email protected]" |
| 330 |
} |
| 331 |
], |
| 332 |
"dist": { |
| 333 |
"shasum": "37feb25b3478674e7b78a16720826b033459a6ff", |
| 334 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.0.tgz" |
| 335 |
}, |
| 336 |
"directories": {} |
| 337 |
}, |
| 338 |
"2.0.1": { |
| 339 |
"name": "bytes", |
| 340 |
"version": "2.0.1", |
| 341 |
"description": "Utility to parse a string bytes (ex: `1TB`) to bytes (`1099511627776`) and vice-versa.", |
| 342 |
"keywords": [ |
| 343 |
"byte", |
| 344 |
"bytes", |
| 345 |
"utility", |
| 346 |
"parse", |
| 347 |
"parser", |
| 348 |
"convert", |
| 349 |
"converter" |
| 350 |
], |
| 351 |
"repository": { |
| 352 |
"type": "git", |
| 353 |
"url": "https://github.com/visionmedia/bytes.js.git" |
| 354 |
}, |
| 355 |
"bugs": { |
| 356 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 357 |
}, |
| 358 |
"main": "index.js", |
| 359 |
"component": { |
| 360 |
"scripts": { |
| 361 |
"bytes/index.js": "index.js" |
| 362 |
} |
| 363 |
}, |
| 364 |
"scripts": { |
| 365 |
"test": "mocha --check-leaks --reporter spec" |
| 366 |
}, |
| 367 |
"devDependencies": { |
| 368 |
"chai": "*", |
| 369 |
"mocha": "*" |
| 370 |
}, |
| 371 |
"author": { |
| 372 |
"name": "TJ Holowaychuk", |
| 373 |
"email": "[email protected]", |
| 374 |
"url": "http://tjholowaychuk.com" |
| 375 |
}, |
| 376 |
"contributors": [ |
| 377 |
{ |
| 378 |
"name": "michaelsanford", |
| 379 |
"url": "https://medium.com/@msanford" |
| 380 |
}, |
| 381 |
{ |
| 382 |
"name": "vladikoff", |
| 383 |
"email": "[email protected]", |
| 384 |
"url": "http://vf.io" |
| 385 |
}, |
| 386 |
{ |
| 387 |
"name": "justindeguzman", |
| 388 |
"url": "http://justindeguzman.net" |
| 389 |
}, |
| 390 |
{ |
| 391 |
"name": "mixu", |
| 392 |
"url": "http://mixu.net" |
| 393 |
}, |
| 394 |
{ |
| 395 |
"name": "theofidry", |
| 396 |
"email": "[email protected]", |
| 397 |
"url": "https://github.com/theofidry" |
| 398 |
} |
| 399 |
], |
| 400 |
"files": [ |
| 401 |
"lib/", |
| 402 |
"History.md", |
| 403 |
"LICENSE", |
| 404 |
"Readme.md", |
| 405 |
"index.js" |
| 406 |
], |
| 407 |
"license": "MIT", |
| 408 |
"gitHead": "8c00b7361081cbd9bbefdeaac387cfa3483ee584", |
| 409 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 410 |
"_id": "[email protected]", |
| 411 |
"_shasum": "673743059be43d929f9c225dd7363ee0f8b15d97", |
| 412 |
"_from": ".", |
| 413 |
"_npmVersion": "1.4.28", |
| 414 |
"_npmUser": { |
| 415 |
"name": "dougwilson", |
| 416 |
"email": "[email protected]" |
| 417 |
}, |
| 418 |
"maintainers": [ |
| 419 |
{ |
| 420 |
"name": "tjholowaychuk", |
| 421 |
"email": "[email protected]" |
| 422 |
}, |
| 423 |
{ |
| 424 |
"name": "dougwilson", |
| 425 |
"email": "[email protected]" |
| 426 |
} |
| 427 |
], |
| 428 |
"dist": { |
| 429 |
"shasum": "673743059be43d929f9c225dd7363ee0f8b15d97", |
| 430 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.1.tgz" |
| 431 |
}, |
| 432 |
"directories": {} |
| 433 |
}, |
| 434 |
"2.0.2": { |
| 435 |
"name": "bytes", |
| 436 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 437 |
"version": "2.0.2", |
| 438 |
"author": { |
| 439 |
"name": "TJ Holowaychuk", |
| 440 |
"email": "[email protected]", |
| 441 |
"url": "http://tjholowaychuk.com" |
| 442 |
}, |
| 443 |
"contributors": [ |
| 444 |
{ |
| 445 |
"name": "Jed Watson", |
| 446 |
"email": "[email protected]" |
| 447 |
} |
| 448 |
], |
| 449 |
"license": "MIT", |
| 450 |
"keywords": [ |
| 451 |
"byte", |
| 452 |
"bytes", |
| 453 |
"utility", |
| 454 |
"parse", |
| 455 |
"parser", |
| 456 |
"convert", |
| 457 |
"converter" |
| 458 |
], |
| 459 |
"repository": { |
| 460 |
"type": "git", |
| 461 |
"url": "https://github.com/visionmedia/bytes.js" |
| 462 |
}, |
| 463 |
"component": { |
| 464 |
"scripts": { |
| 465 |
"bytes/index.js": "index.js" |
| 466 |
} |
| 467 |
}, |
| 468 |
"devDependencies": { |
| 469 |
"mocha": "*" |
| 470 |
}, |
| 471 |
"files": [ |
| 472 |
"lib/", |
| 473 |
"History.md", |
| 474 |
"LICENSE", |
| 475 |
"Readme.md", |
| 476 |
"index.js" |
| 477 |
], |
| 478 |
"scripts": { |
| 479 |
"test": "mocha --check-leaks --reporter spec" |
| 480 |
}, |
| 481 |
"gitHead": "613ebfa44c8e42ae107833e1a587f6a3349f6a64", |
| 482 |
"bugs": { |
| 483 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 484 |
}, |
| 485 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 486 |
"_id": "[email protected]", |
| 487 |
"_shasum": "580fea1111c2df039f2644ff917ce4010501184e", |
| 488 |
"_from": ".", |
| 489 |
"_npmVersion": "1.4.28", |
| 490 |
"_npmUser": { |
| 491 |
"name": "dougwilson", |
| 492 |
"email": "[email protected]" |
| 493 |
}, |
| 494 |
"maintainers": [ |
| 495 |
{ |
| 496 |
"name": "tjholowaychuk", |
| 497 |
"email": "[email protected]" |
| 498 |
}, |
| 499 |
{ |
| 500 |
"name": "dougwilson", |
| 501 |
"email": "[email protected]" |
| 502 |
} |
| 503 |
], |
| 504 |
"dist": { |
| 505 |
"shasum": "580fea1111c2df039f2644ff917ce4010501184e", |
| 506 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.0.2.tgz" |
| 507 |
}, |
| 508 |
"directories": {} |
| 509 |
}, |
| 510 |
"2.1.0": { |
| 511 |
"name": "bytes", |
| 512 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 513 |
"version": "2.1.0", |
| 514 |
"author": { |
| 515 |
"name": "TJ Holowaychuk", |
| 516 |
"email": "[email protected]", |
| 517 |
"url": "http://tjholowaychuk.com" |
| 518 |
}, |
| 519 |
"contributors": [ |
| 520 |
{ |
| 521 |
"name": "Jed Watson", |
| 522 |
"email": "[email protected]" |
| 523 |
} |
| 524 |
], |
| 525 |
"license": "MIT", |
| 526 |
"keywords": [ |
| 527 |
"byte", |
| 528 |
"bytes", |
| 529 |
"utility", |
| 530 |
"parse", |
| 531 |
"parser", |
| 532 |
"convert", |
| 533 |
"converter" |
| 534 |
], |
| 535 |
"repository": { |
| 536 |
"type": "git", |
| 537 |
"url": "https://github.com/visionmedia/bytes.js" |
| 538 |
}, |
| 539 |
"component": { |
| 540 |
"scripts": { |
| 541 |
"bytes/index.js": "index.js" |
| 542 |
} |
| 543 |
}, |
| 544 |
"devDependencies": { |
| 545 |
"mocha": "*" |
| 546 |
}, |
| 547 |
"files": [ |
| 548 |
"History.md", |
| 549 |
"LICENSE", |
| 550 |
"Readme.md", |
| 551 |
"index.js" |
| 552 |
], |
| 553 |
"scripts": { |
| 554 |
"test": "mocha --check-leaks --reporter spec" |
| 555 |
}, |
| 556 |
"gitHead": "86e4520cc369b34866154a53344ca50b2bb5ddcd", |
| 557 |
"bugs": { |
| 558 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 559 |
}, |
| 560 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 561 |
"_id": "[email protected]", |
| 562 |
"_shasum": "ac93c410e2ffc9cc7cf4b464b38289067f5e47b4", |
| 563 |
"_from": ".", |
| 564 |
"_npmVersion": "1.4.28", |
| 565 |
"_npmUser": { |
| 566 |
"name": "dougwilson", |
| 567 |
"email": "[email protected]" |
| 568 |
}, |
| 569 |
"maintainers": [ |
| 570 |
{ |
| 571 |
"name": "tjholowaychuk", |
| 572 |
"email": "[email protected]" |
| 573 |
}, |
| 574 |
{ |
| 575 |
"name": "dougwilson", |
| 576 |
"email": "[email protected]" |
| 577 |
} |
| 578 |
], |
| 579 |
"dist": { |
| 580 |
"shasum": "ac93c410e2ffc9cc7cf4b464b38289067f5e47b4", |
| 581 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz" |
| 582 |
}, |
| 583 |
"directories": {} |
| 584 |
}, |
| 585 |
"2.2.0": { |
| 586 |
"name": "bytes", |
| 587 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 588 |
"version": "2.2.0", |
| 589 |
"author": { |
| 590 |
"name": "TJ Holowaychuk", |
| 591 |
"email": "[email protected]", |
| 592 |
"url": "http://tjholowaychuk.com" |
| 593 |
}, |
| 594 |
"contributors": [ |
| 595 |
{ |
| 596 |
"name": "Jed Watson", |
| 597 |
"email": "[email protected]" |
| 598 |
}, |
| 599 |
{ |
| 600 |
"name": "Théo FIDRY", |
| 601 |
"email": "[email protected]" |
| 602 |
} |
| 603 |
], |
| 604 |
"license": "MIT", |
| 605 |
"keywords": [ |
| 606 |
"byte", |
| 607 |
"bytes", |
| 608 |
"utility", |
| 609 |
"parse", |
| 610 |
"parser", |
| 611 |
"convert", |
| 612 |
"converter" |
| 613 |
], |
| 614 |
"repository": { |
| 615 |
"type": "git", |
| 616 |
"url": "https://github.com/visionmedia/bytes.js" |
| 617 |
}, |
| 618 |
"component": { |
| 619 |
"scripts": { |
| 620 |
"bytes/index.js": "index.js" |
| 621 |
} |
| 622 |
}, |
| 623 |
"devDependencies": { |
| 624 |
"mocha": "1.21.5" |
| 625 |
}, |
| 626 |
"files": [ |
| 627 |
"History.md", |
| 628 |
"LICENSE", |
| 629 |
"Readme.md", |
| 630 |
"index.js" |
| 631 |
], |
| 632 |
"scripts": { |
| 633 |
"test": "mocha --check-leaks --reporter spec" |
| 634 |
}, |
| 635 |
"gitHead": "509a01a5472b9163ae5a7db41e2d6bd986fdf595", |
| 636 |
"bugs": { |
| 637 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 638 |
}, |
| 639 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 640 |
"_id": "[email protected]", |
| 641 |
"_shasum": "fd35464a403f6f9117c2de3609ecff9cae000588", |
| 642 |
"_from": ".", |
| 643 |
"_npmVersion": "1.4.28", |
| 644 |
"_npmUser": { |
| 645 |
"name": "dougwilson", |
| 646 |
"email": "[email protected]" |
| 647 |
}, |
| 648 |
"maintainers": [ |
| 649 |
{ |
| 650 |
"name": "tjholowaychuk", |
| 651 |
"email": "[email protected]" |
| 652 |
}, |
| 653 |
{ |
| 654 |
"name": "dougwilson", |
| 655 |
"email": "[email protected]" |
| 656 |
} |
| 657 |
], |
| 658 |
"dist": { |
| 659 |
"shasum": "fd35464a403f6f9117c2de3609ecff9cae000588", |
| 660 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.2.0.tgz" |
| 661 |
}, |
| 662 |
"directories": {} |
| 663 |
}, |
| 664 |
"2.3.0": { |
| 665 |
"name": "bytes", |
| 666 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 667 |
"version": "2.3.0", |
| 668 |
"author": { |
| 669 |
"name": "TJ Holowaychuk", |
| 670 |
"email": "[email protected]", |
| 671 |
"url": "http://tjholowaychuk.com" |
| 672 |
}, |
| 673 |
"contributors": [ |
| 674 |
{ |
| 675 |
"name": "Jed Watson", |
| 676 |
"email": "[email protected]" |
| 677 |
}, |
| 678 |
{ |
| 679 |
"name": "Théo FIDRY", |
| 680 |
"email": "[email protected]" |
| 681 |
} |
| 682 |
], |
| 683 |
"license": "MIT", |
| 684 |
"keywords": [ |
| 685 |
"byte", |
| 686 |
"bytes", |
| 687 |
"utility", |
| 688 |
"parse", |
| 689 |
"parser", |
| 690 |
"convert", |
| 691 |
"converter" |
| 692 |
], |
| 693 |
"repository": { |
| 694 |
"type": "git", |
| 695 |
"url": "git+https://github.com/visionmedia/bytes.js.git" |
| 696 |
}, |
| 697 |
"component": { |
| 698 |
"scripts": { |
| 699 |
"bytes/index.js": "index.js" |
| 700 |
} |
| 701 |
}, |
| 702 |
"devDependencies": { |
| 703 |
"mocha": "1.21.5" |
| 704 |
}, |
| 705 |
"files": [ |
| 706 |
"History.md", |
| 707 |
"LICENSE", |
| 708 |
"Readme.md", |
| 709 |
"index.js" |
| 710 |
], |
| 711 |
"scripts": { |
| 712 |
"test": "mocha --check-leaks --reporter spec" |
| 713 |
}, |
| 714 |
"gitHead": "c8be41b24b04e04992d5918356d5a4dd35fbf805", |
| 715 |
"bugs": { |
| 716 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 717 |
}, |
| 718 |
"homepage": "https://github.com/visionmedia/bytes.js#readme", |
| 719 |
"_id": "[email protected]", |
| 720 |
"_shasum": "d5b680a165b6201739acb611542aabc2d8ceb070", |
| 721 |
"_from": ".", |
| 722 |
"_npmVersion": "2.14.7", |
| 723 |
"_nodeVersion": "4.2.3", |
| 724 |
"_npmUser": { |
| 725 |
"name": "dougwilson", |
| 726 |
"email": "[email protected]" |
| 727 |
}, |
| 728 |
"dist": { |
| 729 |
"shasum": "d5b680a165b6201739acb611542aabc2d8ceb070", |
| 730 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.3.0.tgz" |
| 731 |
}, |
| 732 |
"maintainers": [ |
| 733 |
{ |
| 734 |
"name": "dougwilson", |
| 735 |
"email": "[email protected]" |
| 736 |
}, |
| 737 |
{ |
| 738 |
"name": "tjholowaychuk", |
| 739 |
"email": "[email protected]" |
| 740 |
} |
| 741 |
], |
| 742 |
"_npmOperationalInternal": { |
| 743 |
"host": "packages-6-west.internal.npmjs.com", |
| 744 |
"tmp": "tmp/bytes-2.3.0.tgz_1455595208428_0.5990735022351146" |
| 745 |
}, |
| 746 |
"directories": {} |
| 747 |
}, |
| 748 |
"2.4.0": { |
| 749 |
"name": "bytes", |
| 750 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 751 |
"version": "2.4.0", |
| 752 |
"author": { |
| 753 |
"name": "TJ Holowaychuk", |
| 754 |
"email": "[email protected]", |
| 755 |
"url": "http://tjholowaychuk.com" |
| 756 |
}, |
| 757 |
"contributors": [ |
| 758 |
{ |
| 759 |
"name": "Jed Watson", |
| 760 |
"email": "[email protected]" |
| 761 |
}, |
| 762 |
{ |
| 763 |
"name": "Théo FIDRY", |
| 764 |
"email": "[email protected]" |
| 765 |
} |
| 766 |
], |
| 767 |
"license": "MIT", |
| 768 |
"keywords": [ |
| 769 |
"byte", |
| 770 |
"bytes", |
| 771 |
"utility", |
| 772 |
"parse", |
| 773 |
"parser", |
| 774 |
"convert", |
| 775 |
"converter" |
| 776 |
], |
| 777 |
"repository": { |
| 778 |
"type": "git", |
| 779 |
"url": "https://github.com/visionmedia/bytes.js" |
| 780 |
}, |
| 781 |
"component": { |
| 782 |
"scripts": { |
| 783 |
"bytes/index.js": "index.js" |
| 784 |
} |
| 785 |
}, |
| 786 |
"devDependencies": { |
| 787 |
"mocha": "1.21.5" |
| 788 |
}, |
| 789 |
"files": [ |
| 790 |
"History.md", |
| 791 |
"LICENSE", |
| 792 |
"Readme.md", |
| 793 |
"index.js" |
| 794 |
], |
| 795 |
"scripts": { |
| 796 |
"test": "mocha --check-leaks --reporter spec" |
| 797 |
}, |
| 798 |
"gitHead": "2a598442bdfa796df8d01a96cc54495cda550e70", |
| 799 |
"bugs": { |
| 800 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 801 |
}, |
| 802 |
"homepage": "https://github.com/visionmedia/bytes.js", |
| 803 |
"_id": "[email protected]", |
| 804 |
"_shasum": "7d97196f9d5baf7f6935e25985549edd2a6c2339", |
| 805 |
"_from": ".", |
| 806 |
"_npmVersion": "1.4.28", |
| 807 |
"_npmUser": { |
| 808 |
"name": "dougwilson", |
| 809 |
"email": "[email protected]" |
| 810 |
}, |
| 811 |
"maintainers": [ |
| 812 |
{ |
| 813 |
"name": "dougwilson", |
| 814 |
"email": "[email protected]" |
| 815 |
}, |
| 816 |
{ |
| 817 |
"name": "tjholowaychuk", |
| 818 |
"email": "[email protected]" |
| 819 |
} |
| 820 |
], |
| 821 |
"dist": { |
| 822 |
"shasum": "7d97196f9d5baf7f6935e25985549edd2a6c2339", |
| 823 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz" |
| 824 |
}, |
| 825 |
"_npmOperationalInternal": { |
| 826 |
"host": "packages-16-east.internal.npmjs.com", |
| 827 |
"tmp": "tmp/bytes-2.4.0.tgz_1464812473023_0.6271433881483972" |
| 828 |
}, |
| 829 |
"directories": {} |
| 830 |
}, |
| 831 |
"2.5.0": { |
| 832 |
"name": "bytes", |
| 833 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 834 |
"version": "2.5.0", |
| 835 |
"author": { |
| 836 |
"name": "TJ Holowaychuk", |
| 837 |
"email": "[email protected]", |
| 838 |
"url": "http://tjholowaychuk.com" |
| 839 |
}, |
| 840 |
"contributors": [ |
| 841 |
{ |
| 842 |
"name": "Jed Watson", |
| 843 |
"email": "[email protected]" |
| 844 |
}, |
| 845 |
{ |
| 846 |
"name": "Théo FIDRY", |
| 847 |
"email": "[email protected]" |
| 848 |
} |
| 849 |
], |
| 850 |
"license": "MIT", |
| 851 |
"keywords": [ |
| 852 |
"byte", |
| 853 |
"bytes", |
| 854 |
"utility", |
| 855 |
"parse", |
| 856 |
"parser", |
| 857 |
"convert", |
| 858 |
"converter" |
| 859 |
], |
| 860 |
"repository": { |
| 861 |
"type": "git", |
| 862 |
"url": "git+https://github.com/visionmedia/bytes.js.git" |
| 863 |
}, |
| 864 |
"component": { |
| 865 |
"scripts": { |
| 866 |
"bytes/index.js": "index.js" |
| 867 |
} |
| 868 |
}, |
| 869 |
"devDependencies": { |
| 870 |
"mocha": "1.21.5", |
| 871 |
"nyc": "10.1.2" |
| 872 |
}, |
| 873 |
"files": [ |
| 874 |
"History.md", |
| 875 |
"LICENSE", |
| 876 |
"Readme.md", |
| 877 |
"index.js" |
| 878 |
], |
| 879 |
"engines": { |
| 880 |
"node": ">= 0.6" |
| 881 |
}, |
| 882 |
"scripts": { |
| 883 |
"test": "mocha --check-leaks --reporter spec", |
| 884 |
"test-ci": "nyc --reporter=text npm test", |
| 885 |
"test-cov": "nyc --reporter=html --reporter=text npm test" |
| 886 |
}, |
| 887 |
"gitHead": "a4b9af2bf289175f12b3538eb172f2489844b1ec", |
| 888 |
"bugs": { |
| 889 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 890 |
}, |
| 891 |
"homepage": "https://github.com/visionmedia/bytes.js#readme", |
| 892 |
"_id": "[email protected]", |
| 893 |
"_shasum": "4c9423ea2d252c270c41b2bdefeff9bb6b62c06a", |
| 894 |
"_from": ".", |
| 895 |
"_npmVersion": "2.15.11", |
| 896 |
"_nodeVersion": "4.7.3", |
| 897 |
"_npmUser": { |
| 898 |
"name": "dougwilson", |
| 899 |
"email": "[email protected]" |
| 900 |
}, |
| 901 |
"dist": { |
| 902 |
"shasum": "4c9423ea2d252c270c41b2bdefeff9bb6b62c06a", |
| 903 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-2.5.0.tgz" |
| 904 |
}, |
| 905 |
"maintainers": [ |
| 906 |
{ |
| 907 |
"name": "dougwilson", |
| 908 |
"email": "[email protected]" |
| 909 |
}, |
| 910 |
{ |
| 911 |
"name": "tjholowaychuk", |
| 912 |
"email": "[email protected]" |
| 913 |
} |
| 914 |
], |
| 915 |
"_npmOperationalInternal": { |
| 916 |
"host": "packages-12-west.internal.npmjs.com", |
| 917 |
"tmp": "tmp/bytes-2.5.0.tgz_1490416399283_0.2922299497295171" |
| 918 |
}, |
| 919 |
"directories": {} |
| 920 |
}, |
| 921 |
"3.0.0": { |
| 922 |
"name": "bytes", |
| 923 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 924 |
"version": "3.0.0", |
| 925 |
"author": { |
| 926 |
"name": "TJ Holowaychuk", |
| 927 |
"email": "[email protected]", |
| 928 |
"url": "http://tjholowaychuk.com" |
| 929 |
}, |
| 930 |
"contributors": [ |
| 931 |
{ |
| 932 |
"name": "Jed Watson", |
| 933 |
"email": "[email protected]" |
| 934 |
}, |
| 935 |
{ |
| 936 |
"name": "Théo FIDRY", |
| 937 |
"email": "[email protected]" |
| 938 |
} |
| 939 |
], |
| 940 |
"license": "MIT", |
| 941 |
"keywords": [ |
| 942 |
"byte", |
| 943 |
"bytes", |
| 944 |
"utility", |
| 945 |
"parse", |
| 946 |
"parser", |
| 947 |
"convert", |
| 948 |
"converter" |
| 949 |
], |
| 950 |
"repository": { |
| 951 |
"type": "git", |
| 952 |
"url": "git+https://github.com/visionmedia/bytes.js.git" |
| 953 |
}, |
| 954 |
"devDependencies": { |
| 955 |
"mocha": "2.5.3", |
| 956 |
"nyc": "10.3.2" |
| 957 |
}, |
| 958 |
"files": [ |
| 959 |
"History.md", |
| 960 |
"LICENSE", |
| 961 |
"Readme.md", |
| 962 |
"index.js" |
| 963 |
], |
| 964 |
"engines": { |
| 965 |
"node": ">= 0.8" |
| 966 |
}, |
| 967 |
"scripts": { |
| 968 |
"test": "mocha --check-leaks --reporter spec", |
| 969 |
"test-ci": "nyc --reporter=text npm test", |
| 970 |
"test-cov": "nyc --reporter=html --reporter=text npm test" |
| 971 |
}, |
| 972 |
"gitHead": "25d4cb488aea3b637448a85fa297d9e65b4b4e04", |
| 973 |
"bugs": { |
| 974 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 975 |
}, |
| 976 |
"homepage": "https://github.com/visionmedia/bytes.js#readme", |
| 977 |
"_id": "[email protected]", |
| 978 |
"_shasum": "d32815404d689699f85a4ea4fa8755dd13a96048", |
| 979 |
"_from": ".", |
| 980 |
"_npmVersion": "3.10.10", |
| 981 |
"_nodeVersion": "6.11.1", |
| 982 |
"_npmUser": { |
| 983 |
"name": "dougwilson", |
| 984 |
"email": "[email protected]" |
| 985 |
}, |
| 986 |
"dist": { |
| 987 |
"shasum": "d32815404d689699f85a4ea4fa8755dd13a96048", |
| 988 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz" |
| 989 |
}, |
| 990 |
"maintainers": [ |
| 991 |
{ |
| 992 |
"name": "dougwilson", |
| 993 |
"email": "[email protected]" |
| 994 |
}, |
| 995 |
{ |
| 996 |
"name": "tjholowaychuk", |
| 997 |
"email": "[email protected]" |
| 998 |
} |
| 999 |
], |
| 1000 |
"_npmOperationalInternal": { |
| 1001 |
"host": "s3://npm-registry-packages", |
| 1002 |
"tmp": "tmp/bytes-3.0.0.tgz_1504216364188_0.5158762519713491" |
| 1003 |
}, |
| 1004 |
"directories": {} |
| 1005 |
}, |
| 1006 |
"3.1.0": { |
| 1007 |
"name": "bytes", |
| 1008 |
"description": "Utility to parse a string bytes to bytes and vice-versa", |
| 1009 |
"version": "3.1.0", |
| 1010 |
"author": { |
| 1011 |
"name": "TJ Holowaychuk", |
| 1012 |
"email": "[email protected]", |
| 1013 |
"url": "http://tjholowaychuk.com" |
| 1014 |
}, |
| 1015 |
"contributors": [ |
| 1016 |
{ |
| 1017 |
"name": "Jed Watson", |
| 1018 |
"email": "[email protected]" |
| 1019 |
}, |
| 1020 |
{ |
| 1021 |
"name": "Théo FIDRY", |
| 1022 |
"email": "[email protected]" |
| 1023 |
} |
| 1024 |
], |
| 1025 |
"license": "MIT", |
| 1026 |
"keywords": [ |
| 1027 |
"byte", |
| 1028 |
"bytes", |
| 1029 |
"utility", |
| 1030 |
"parse", |
| 1031 |
"parser", |
| 1032 |
"convert", |
| 1033 |
"converter" |
| 1034 |
], |
| 1035 |
"repository": { |
| 1036 |
"type": "git", |
| 1037 |
"url": "git+https://github.com/visionmedia/bytes.js.git" |
| 1038 |
}, |
| 1039 |
"devDependencies": { |
| 1040 |
"eslint": "5.12.1", |
| 1041 |
"mocha": "5.2.0", |
| 1042 |
"nyc": "13.1.0" |
| 1043 |
}, |
| 1044 |
"engines": { |
| 1045 |
"node": ">= 0.8" |
| 1046 |
}, |
| 1047 |
"scripts": { |
| 1048 |
"lint": "eslint .", |
| 1049 |
"test": "mocha --check-leaks --reporter spec", |
| 1050 |
"test-ci": "nyc --reporter=text npm test", |
| 1051 |
"test-cov": "nyc --reporter=html --reporter=text npm test" |
| 1052 |
}, |
| 1053 |
"gitHead": "49ac709cb210af60e35957c069bb2cd07f335cfd", |
| 1054 |
"bugs": { |
| 1055 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 1056 |
}, |
| 1057 |
"homepage": "https://github.com/visionmedia/bytes.js#readme", |
| 1058 |
"_id": "[email protected]", |
| 1059 |
"_npmVersion": "6.4.1", |
| 1060 |
"_nodeVersion": "8.15.0", |
| 1061 |
"_npmUser": { |
| 1062 |
"name": "dougwilson", |
| 1063 |
"email": "[email protected]" |
| 1064 |
}, |
| 1065 |
"dist": { |
| 1066 |
"integrity": "sha512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==", |
| 1067 |
"shasum": "f6cf7933a360e0588fa9fde85651cdc7f805d1f6", |
| 1068 |
"tarball": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", |
| 1069 |
"fileCount": 5, |
| 1070 |
"unpackedSize": 10997, |
| 1071 |
"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" |
| 1072 |
}, |
| 1073 |
"maintainers": [ |
| 1074 |
{ |
| 1075 |
"name": "dougwilson", |
| 1076 |
"email": "[email protected]" |
| 1077 |
}, |
| 1078 |
{ |
| 1079 |
"name": "tjholowaychuk", |
| 1080 |
"email": "[email protected]" |
| 1081 |
} |
| 1082 |
], |
| 1083 |
"directories": {}, |
| 1084 |
"_npmOperationalInternal": { |
| 1085 |
"host": "s3://npm-registry-packages", |
| 1086 |
"tmp": "tmp/bytes_3.1.0_1548218614714_0.7781245590502732" |
| 1087 |
}, |
| 1088 |
"_hasShrinkwrap": false |
| 1089 |
} |
| 1090 |
}, |
| 1091 |
"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", |
| 1092 |
"maintainers": [ |
| 1093 |
{ |
| 1094 |
"name": "dougwilson", |
| 1095 |
"email": "[email protected]" |
| 1096 |
}, |
| 1097 |
{ |
| 1098 |
"name": "tjholowaychuk", |
| 1099 |
"email": "[email protected]" |
| 1100 |
} |
| 1101 |
], |
| 1102 |
"time": { |
| 1103 |
"modified": "2019-01-23T04:43:37.353Z", |
| 1104 |
"created": "2012-06-11T15:44:32.849Z", |
| 1105 |
"0.0.1": "2012-06-11T15:44:34.095Z", |
| 1106 |
"0.1.0": "2012-08-17T19:26:03.899Z", |
| 1107 |
"0.2.0": "2012-10-28T07:40:18.125Z", |
| 1108 |
"0.2.1": "2013-04-01T18:48:09.764Z", |
| 1109 |
"0.3.0": "2014-03-20T01:08:49.952Z", |
| 1110 |
"1.0.0": "2014-05-05T23:52:20.318Z", |
| 1111 |
"2.0.0": "2015-04-12T21:04:54.307Z", |
| 1112 |
"2.0.1": "2015-05-08T04:43:03.189Z", |
| 1113 |
"2.0.2": "2015-05-21T03:19:26.235Z", |
| 1114 |
"2.1.0": "2015-05-22T02:55:58.116Z", |
| 1115 |
"2.2.0": "2015-11-14T01:44:07.135Z", |
| 1116 |
"2.3.0": "2016-02-16T04:00:12.239Z", |
| 1117 |
"2.4.0": "2016-06-01T20:21:14.269Z", |
| 1118 |
"2.5.0": "2017-03-25T04:33:21.150Z", |
| 1119 |
"3.0.0": "2017-08-31T21:52:45.175Z", |
| 1120 |
"3.1.0": "2019-01-23T04:43:34.815Z" |
| 1121 |
}, |
| 1122 |
"author": { |
| 1123 |
"name": "TJ Holowaychuk", |
| 1124 |
"email": "[email protected]", |
| 1125 |
"url": "http://tjholowaychuk.com" |
| 1126 |
}, |
| 1127 |
"users": { |
| 1128 |
"m42am": true, |
| 1129 |
"purywp": true, |
| 1130 |
"cshao": true, |
| 1131 |
"qqqppp9998": true, |
| 1132 |
"honzajde": true, |
| 1133 |
"fotooo": true, |
| 1134 |
"moimikey": true, |
| 1135 |
"dpanthula": true, |
| 1136 |
"x4devs": true, |
| 1137 |
"snowdream": true, |
| 1138 |
"puranjayjain": true, |
| 1139 |
"ta2edchimp": true, |
| 1140 |
"wgerven": true, |
| 1141 |
"seangenabe": true, |
| 1142 |
"shaomingquan": true, |
| 1143 |
"domjtalbot": true, |
| 1144 |
"heartnett": true, |
| 1145 |
"ahmed-dinar": true, |
| 1146 |
"mlm": true, |
| 1147 |
"shuoshubao": true, |
| 1148 |
"yinfxs": true, |
| 1149 |
"edwardxyt": true, |
| 1150 |
"ccastelli": true, |
| 1151 |
"luiscauro": true, |
| 1152 |
"zhenguo.zhao": true |
| 1153 |
}, |
| 1154 |
"readmeFilename": "Readme.md", |
| 1155 |
"homepage": "https://github.com/visionmedia/bytes.js#readme", |
| 1156 |
"repository": { |
| 1157 |
"type": "git", |
| 1158 |
"url": "git+https://github.com/visionmedia/bytes.js.git" |
| 1159 |
}, |
| 1160 |
"bugs": { |
| 1161 |
"url": "https://github.com/visionmedia/bytes.js/issues" |
| 1162 |
}, |
| 1163 |
"keywords": [ |
| 1164 |
"byte", |
| 1165 |
"bytes", |
| 1166 |
"utility", |
| 1167 |
"parse", |
| 1168 |
"parser", |
| 1169 |
"convert", |
| 1170 |
"converter" |
| 1171 |
], |
| 1172 |
"contributors": [ |
| 1173 |
{ |
| 1174 |
"name": "Jed Watson", |
| 1175 |
"email": "[email protected]" |
| 1176 |
}, |
| 1177 |
{ |
| 1178 |
"name": "Théo FIDRY", |
| 1179 |
"email": "[email protected]" |
| 1180 |
} |
| 1181 |
], |
| 1182 |
"license": "MIT" |
| 1183 |
} |