mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/RoboCommander.git
synced 2026-06-15 15:26:05 +00:00
Initial commit
This commit is contained in:
40
node_modules/pretty-bytes/readme.md
generated
vendored
Normal file
40
node_modules/pretty-bytes/readme.md
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
# pretty-bytes [](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 (e.g. 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
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
const prettyBytes = require('pretty-bytes');
|
||||
|
||||
prettyBytes(1337);
|
||||
//=> '1.34 kB'
|
||||
|
||||
prettyBytes(100);
|
||||
//=> '100 B'
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [pretty-bytes-cli](https://github.com/sindresorhus/pretty-bytes-cli) - CLI for this module
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
Reference in New Issue
Block a user