Comparing version 0.5.0 to 0.5.1
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 |
7141
199
33