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

ms

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ms - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

History.md
0.5.1 / 2013-02-24
==================
* add component namespace
0.5.0 / 2012-11-09

@@ -3,0 +8,0 @@ ==================

12

index.js

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

/**

@@ -10,2 +9,3 @@ * Helpers.

var d = h * 24;
var y = d * 365.25;

@@ -50,19 +50,19 @@ /**

case 'y':
return n * 31557600000;
return n * y;
case 'days':
case 'day':
case 'd':
return n * 86400000;
return n * d;
case 'hours':
case 'hour':
case 'h':
return n * 3600000;
return n * h;
case 'minutes':
case 'minute':
case 'm':
return n * 60000;
return n * m;
case 'seconds':
case 'second':
case 's':
return n * 1000;
return n * s;
case 'ms':

@@ -69,0 +69,0 @@ return n;

{
"name": "ms"
, "version": "0.5.0"
, "description": "Tiny ms conversion utility"
, "main": "./index"
, "devDependencies": {
"mocha": "*"
, "expect.js": "*"
, "serve": "*"
"name": "ms",
"version": "0.5.1",
"description": "Tiny ms conversion utility",
"main": "./index",
"devDependencies": {
"mocha": "*",
"expect.js": "*",
"serve": "*"
},
"component": {
"scripts": {
"ms/index.js": "index.js"
}
}
}

@@ -30,1 +30,5 @@ # ms.js: miliseconds conversion utility

equivalent ms is returned.
## License
MIT
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