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
26
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 1.3.0 to 1.4.0

5

index.js
'use strict';
var parseMs = require('parse-ms');
var plur = require('plur');
var isFinitePonyfill = require('is-finite');
module.exports = function (ms, opts) {
if (typeof ms !== 'number') {
throw new TypeError('Expected a number');
if (!isFinitePonyfill(ms)) {
throw new TypeError('Expected a finite number');
}

@@ -9,0 +10,0 @@

3

package.json
{
"name": "pretty-ms",
"version": "1.3.0",
"version": "1.4.0",
"description": "Convert milliseconds to a human readable string: 1337000000 → 15d 11h 23m 20s",

@@ -46,2 +46,3 @@ "license": "MIT",

"get-stdin": "^4.0.1",
"is-finite": "^1.0.1",
"meow": "^3.3.0",

@@ -48,0 +49,0 @@ "parse-ms": "^1.0.0",

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