Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pretty-bytes

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-bytes - npm Package Compare versions

Comparing version 1.0.4 to 2.0.0

index.js

17

package.json
{
"name": "pretty-bytes",
"version": "1.0.4",
"version": "2.0.0",
"description": "Convert bytes to a human readable string: 1337 → 1.34 kB",
"license": "MIT",
"repository": "sindresorhus/pretty-bytes",
"main": "pretty-bytes.js",
"bin": {
"pretty-bytes": "cli.js"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
"url": "sindresorhus.com"
},
"bin": "cli.js",
"engines": {

@@ -23,9 +20,8 @@ "node": ">=0.10.0"

"files": [
"pretty-bytes.js",
"index.js",
"cli.js"
],
"keywords": [
"cli-app",
"cli",
"bin",
"browser",
"pretty",

@@ -45,3 +41,4 @@ "bytes",

"get-stdin": "^4.0.1",
"meow": "^3.1.0"
"meow": "^3.1.0",
"number-is-nan": "^1.0.0"
},

@@ -48,0 +45,0 @@ "devDependencies": {

@@ -19,14 +19,8 @@ # pretty-bytes [![Build Status](https://travis-ci.org/sindresorhus/pretty-bytes.svg?branch=master)](https://travis-ci.org/sindresorhus/pretty-bytes)

```
$ bower install --save pretty-bytes
```
```
$ component install sindresorhus/pretty-bytes
```
## Usage
```js
var prettyBytes = require('pretty-bytes');
prettyBytes(1337);

@@ -33,0 +27,0 @@ //=> '1.34 kB'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc