1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 13:10:09 +02:00

add node modules to repo

This commit is contained in:
s2
2018-06-03 13:47:11 +02:00
parent e8c95255e8
commit d002126b72
4115 changed files with 440218 additions and 7519 deletions

60
node_modules/pretty-bytes/readme.md generated vendored Normal file
View File

@@ -0,0 +1,60 @@
# pretty-bytes [![Build Status](https://travis-ci.org/sindresorhus/pretty-bytes.svg?branch=master)](https://travis-ci.org/sindresorhus/pretty-bytes)
> Convert bytes to a human readable string: `1337` → `1.34 kB`
Useful for displaying file sizes for humans.
-
*Note that it uses base-10 (eg. kilobyte).
[Read about the difference between kilobyte and kibibyte.](http://pacoup.com/2009/05/26/kb-kb-kib-whats-up-with-that/)*
## Install
```
$ npm install --save pretty-bytes
```
```
$ bower install --save pretty-bytes
```
```
$ component install sindresorhus/pretty-bytes
```
## Usage
```js
prettyBytes(1337);
//=> '1.34 kB'
prettyBytes(100);
//=> '100 B'
```
## CLI
```
$ npm install --global pretty-bytes
```
```
$ pretty-bytes --help
Usage
$ pretty-bytes <number>
$ echo <number> | pretty-bytes
Example
$ pretty-bytes 1337
1.34 kB
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)