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

pretty-ms

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty-ms - npm Package Compare versions

Comparing version 0.1.0 to 0.2.1

index.js

2

cli.js
#!/usr/bin/env node
'use strict';
var pkg = require('./package.json');
var prettyMs = require('./pretty-ms');
var prettyMs = require('./index');
var input = process.argv[2];

@@ -6,0 +6,0 @@

{
"name": "pretty-ms",
"version": "0.1.0",
"version": "0.2.1",
"description": "Convert milliseconds to a human readable string: 1337000000 ➔ 15d 11h 23m 20s",
"license": "MIT",
"repository": "sindresorhus/pretty-ms",
"main": "pretty-ms.js",
"bin": {

@@ -20,6 +19,7 @@ "pretty-ms": "cli.js"

"scripts": {
"test": "mocha"
"test": "mocha",
"browser": "browserify -s $npm_package_name -o browser.js ."
},
"files": [
"pretty-ms.js",
"index.js",
"cli.js"

@@ -42,5 +42,9 @@ ],

],
"dependencies": {
"parse-ms": "^0.1.0"
},
"devDependencies": {
"mocha": "*"
"mocha": "*",
"browserify": "^3.0.0"
}
}

@@ -1,2 +0,2 @@

# pretty-ms [![Build Status](https://travis-ci.org/sindresorhus/pretty-ms.png?branch=master)](https://travis-ci.org/sindresorhus/pretty-ms)
# pretty-ms [![Build Status](https://travis-ci.org/sindresorhus/pretty-ms.svg?branch=master)](https://travis-ci.org/sindresorhus/pretty-ms)

@@ -8,6 +8,2 @@ > Convert milliseconds to a human readable string: `1337000000` ➔ `15d 11h 23m 20s`

Download [manually](https://github.com/sindresorhus/pretty-ms/releases) or with a package-manager.
#### [npm](https://npmjs.org/package/pretty-ms)
```bash

@@ -17,4 +13,2 @@ $ npm install --save pretty-ms

#### [Bower](http://bower.io)
```bash

@@ -24,4 +18,2 @@ $ bower install --save pretty-ms

#### [Component](https://github.com/component/component)
```bash

@@ -32,3 +24,3 @@ $ component install sindresorhus/pretty-ms

## Example
## Usage

@@ -68,3 +60,3 @@ ```js

Only show the first unit: `995ms` ➔ `~1s`.
Only show the first unit: `1h 10m` ➔ `~1h`.

@@ -74,4 +66,2 @@

You can also use it as a CLI app by installing it globally:
```bash

@@ -81,4 +71,2 @@ $ npm install --global pretty-ms

### Usage
```bash

@@ -85,0 +73,0 @@ $ pretty-ms --help

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