Changeset e29cc2e for trip-planner-front/node_modules/bytes
- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/bytes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/bytes/History.md
r59329aa re29cc2e 1 3.1.0 / 2019-01-222 ==================3 4 * Add petabyte (`pb`) support5 6 1 3.0.0 / 2017-08-31 7 2 ================== -
trip-planner-front/node_modules/bytes/Readme.md
r59329aa re29cc2e 84 84 * `gb` for gigabytes 85 85 * `tb` for terabytes 86 * `pb` for petabytes87 86 88 87 The units are in powers of two, not ten. This means 1kb = 1024b according to this parser. … … 110 109 111 110 bytes(1024); 112 // output: 1 KB111 // output: 1024 113 112 ``` 114 113 … … 117 116 [MIT](LICENSE) 118 117 119 [coveralls-image]: https://badgen.net/coveralls/c/github/visionmedia/bytes.js/master 118 [downloads-image]: https://img.shields.io/npm/dm/bytes.svg 119 [downloads-url]: https://npmjs.org/package/bytes 120 [npm-image]: https://img.shields.io/npm/v/bytes.svg 121 [npm-url]: https://npmjs.org/package/bytes 122 [travis-image]: https://img.shields.io/travis/visionmedia/bytes.js/master.svg 123 [travis-url]: https://travis-ci.org/visionmedia/bytes.js 124 [coveralls-image]: https://img.shields.io/coveralls/visionmedia/bytes.js/master.svg 120 125 [coveralls-url]: https://coveralls.io/r/visionmedia/bytes.js?branch=master 121 [downloads-image]: https://badgen.net/npm/dm/bytes122 [downloads-url]: https://npmjs.org/package/bytes123 [npm-image]: https://badgen.net/npm/node/bytes124 [npm-url]: https://npmjs.org/package/bytes125 [travis-image]: https://badgen.net/travis/visionmedia/bytes.js/master126 [travis-url]: https://travis-ci.org/visionmedia/bytes.js -
trip-planner-front/node_modules/bytes/index.js
r59329aa re29cc2e 31 31 mb: 1 << 20, 32 32 gb: 1 << 30, 33 tb: Math.pow(1024, 4), 34 pb: Math.pow(1024, 5), 33 tb: ((1 << 30) * 1024) 35 34 }; 36 35 37 var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb |pb)$/i;36 var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb)$/i; 38 37 39 38 /** … … 95 94 96 95 if (!unit || !map[unit.toLowerCase()]) { 97 if (mag >= map.pb) { 98 unit = 'PB'; 99 } else if (mag >= map.tb) { 96 if (mag >= map.tb) { 100 97 unit = 'TB'; 101 98 } else if (mag >= map.gb) { -
trip-planner-front/node_modules/bytes/package.json
r59329aa re29cc2e 1 1 { 2 "_args": [ 3 [ 4 "bytes@3.1.0", 5 "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front" 6 ] 7 ], 8 "_development": true, 9 "_from": "bytes@3.1.0", 10 "_id": "bytes@3.1.0", 2 "_from": "bytes@3.0.0", 3 "_id": "bytes@3.0.0", 11 4 "_inBundle": false, 12 "_integrity": "sha 512-zauLjrfCG+xvoyaqLoV8bLVXXNGC4JqlxFCutSDWA6fJrTo2ZuvLYTqZ7aHBLZSMOopbzwv8f+wZcVzfVTI2Dg==",5 "_integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=", 13 6 "_location": "/bytes", 14 7 "_phantomChildren": {}, … … 16 9 "type": "version", 17 10 "registry": true, 18 "raw": "bytes@3. 1.0",11 "raw": "bytes@3.0.0", 19 12 "name": "bytes", 20 13 "escapedName": "bytes", 21 "rawSpec": "3. 1.0",14 "rawSpec": "3.0.0", 22 15 "saveSpec": null, 23 "fetchSpec": "3. 1.0"16 "fetchSpec": "3.0.0" 24 17 }, 25 18 "_requiredBy": [ 26 "/body-parser", 27 "/raw-body" 19 "/compression" 28 20 ], 29 "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.0.tgz", 30 "_spec": "3.1.0", 31 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front", 21 "_resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", 22 "_shasum": "d32815404d689699f85a4ea4fa8755dd13a96048", 23 "_spec": "bytes@3.0.0", 24 "_where": "C:\\Users\\DELL\\Desktop\\bachelor-thesis\\trip-planner-front\\node_modules\\compression", 32 25 "author": { 33 26 "name": "TJ Holowaychuk", … … 38 31 "url": "https://github.com/visionmedia/bytes.js/issues" 39 32 }, 33 "bundleDependencies": false, 40 34 "contributors": [ 41 35 { … … 48 42 } 49 43 ], 44 "deprecated": false, 50 45 "description": "Utility to parse a string bytes to bytes and vice-versa", 51 46 "devDependencies": { 52 "eslint": "5.12.1", 53 "mocha": "5.2.0", 54 "nyc": "13.1.0" 47 "mocha": "2.5.3", 48 "nyc": "10.3.2" 55 49 }, 56 50 "engines": { … … 80 74 }, 81 75 "scripts": { 82 "lint": "eslint .",83 76 "test": "mocha --check-leaks --reporter spec", 84 77 "test-ci": "nyc --reporter=text npm test", 85 78 "test-cov": "nyc --reporter=html --reporter=text npm test" 86 79 }, 87 "version": "3. 1.0"80 "version": "3.0.0" 88 81 }
Note:
See TracChangeset
for help on using the changeset viewer.