Comparing version 0.1.0 to 0.2.1
#!/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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3846
1
2
72
81
+ Addedparse-ms@^0.1.0
+ Addedparse-ms@0.1.2(transitive)