aboutsummaryrefslogtreecommitdiff
path: root/node_modules/bytes
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
commitb22f6770c8bd084d66950655203c61dd701b3d90 (patch)
tree873d7fb19584ec2709b95cc1ca05a1fc7cfd0fc4 /node_modules/bytes
parent383285ecd5292bf9a825e05904955b937de84cc9 (diff)
downloadequestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.gz
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.bz2
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.zip
Remove node_modules
Diffstat (limited to 'node_modules/bytes')
-rw-r--r--node_modules/bytes/.npmignore1
-rw-r--r--node_modules/bytes/History.md25
-rw-r--r--node_modules/bytes/Makefile7
-rw-r--r--node_modules/bytes/Readme.md54
-rw-r--r--node_modules/bytes/component.json7
-rw-r--r--node_modules/bytes/index.js41
-rw-r--r--node_modules/bytes/package.json21
7 files changed, 0 insertions, 156 deletions
diff --git a/node_modules/bytes/.npmignore b/node_modules/bytes/.npmignore
deleted file mode 100644
index 9daeafb..0000000
--- a/node_modules/bytes/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-test
diff --git a/node_modules/bytes/History.md b/node_modules/bytes/History.md
deleted file mode 100644
index 5097352..0000000
--- a/node_modules/bytes/History.md
+++ /dev/null
@@ -1,25 +0,0 @@
-
-1.0.0 / 2014-05-05
-==================
-
- * add negative support. fixes #6
-
-0.3.0 / 2014-03-19
-==================
-
- * added terabyte support
-
-0.2.1 / 2013-04-01
-==================
-
- * add .component
-
-0.2.0 / 2012-10-28
-==================
-
- * bytes(200).should.eql('200b')
-
-0.1.0 / 2012-07-04
-==================
-
- * add bytes to string conversion [yields]
diff --git a/node_modules/bytes/Makefile b/node_modules/bytes/Makefile
deleted file mode 100644
index 8e8640f..0000000
--- a/node_modules/bytes/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-
-test:
- @./node_modules/.bin/mocha \
- --reporter spec \
- --require should
-
-.PHONY: test \ No newline at end of file
diff --git a/node_modules/bytes/Readme.md b/node_modules/bytes/Readme.md
deleted file mode 100644
index 5591b28..0000000
--- a/node_modules/bytes/Readme.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# node-bytes
-
- Byte string parser / formatter.
-
-## Example:
-
-```js
-bytes('1kb')
-// => 1024
-
-bytes('2mb')
-// => 2097152
-
-bytes('1gb')
-// => 1073741824
-
-bytes(1073741824)
-// => 1gb
-
-bytes(1099511627776)
-// => 1tb
-```
-
-## Installation
-
-```
-$ npm install bytes
-$ component install visionmedia/bytes.js
-```
-
-## License
-
-(The MIT License)
-
-Copyright (c) 2012 TJ Holowaychuk &lt;tj@vision-media.ca&gt;
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-'Software'), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/bytes/component.json b/node_modules/bytes/component.json
deleted file mode 100644
index 2929c25..0000000
--- a/node_modules/bytes/component.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "name": "bytes",
- "description": "byte size string parser / serializer",
- "keywords": ["bytes", "utility"],
- "version": "0.2.1",
- "scripts": ["index.js"]
-}
diff --git a/node_modules/bytes/index.js b/node_modules/bytes/index.js
deleted file mode 100644
index c1da2fe..0000000
--- a/node_modules/bytes/index.js
+++ /dev/null
@@ -1,41 +0,0 @@
-
-/**
- * Parse byte `size` string.
- *
- * @param {String} size
- * @return {Number}
- * @api public
- */
-
-module.exports = function(size) {
- if ('number' == typeof size) return convert(size);
- var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb|tb)$/)
- , n = parseFloat(parts[1])
- , type = parts[2];
-
- var map = {
- kb: 1 << 10
- , mb: 1 << 20
- , gb: 1 << 30
- , tb: ((1 << 30) * 1024)
- };
-
- return map[type] * n;
-};
-
-/**
- * convert bytes into string.
- *
- * @param {Number} b - bytes to convert
- * @return {String}
- * @api public
- */
-
-function convert (b) {
- var tb = ((1 << 30) * 1024), gb = 1 << 30, mb = 1 << 20, kb = 1 << 10, abs = Math.abs(b);
- if (abs >= tb) return (Math.round(b / tb * 100) / 100) + 'tb';
- if (abs >= gb) return (Math.round(b / gb * 100) / 100) + 'gb';
- if (abs >= mb) return (Math.round(b / mb * 100) / 100) + 'mb';
- if (abs >= kb) return (Math.round(b / kb * 100) / 100) + 'kb';
- return b + 'b';
-}
diff --git a/node_modules/bytes/package.json b/node_modules/bytes/package.json
deleted file mode 100644
index 76e0bff..0000000
--- a/node_modules/bytes/package.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "name": "bytes",
- "author": "TJ Holowaychuk <tj@vision-media.ca> (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"
- }
- }
-}