Comparing version 0.0.0-beta.1 to 1.0.0-rc.1
{ | ||
"name": "aleppo", | ||
"version": "0.0.0-beta.1", | ||
"version": "1.0.0-rc.1", | ||
"description": "General node functions, useful for any project.", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"test": "mocha --compilers js:babel-core/register test", | ||
"test-getters": "mocha --compilers js:babel-core/register test/getters.test.js" | ||
"test-delay": "mocha --compilers js:babel-core/register test/getters.delay.test.js" | ||
}, | ||
@@ -14,0 +14,0 @@ "repository": { |
@@ -43,3 +43,2 @@ # Overview | ||
1. **Numbers**: | ||
```javascript | ||
@@ -55,3 +54,2 @@ const numbers = generators.numbers; | ||
1. **object**: | ||
```javascript | ||
@@ -62,3 +60,19 @@ getters.obj(input) // returns key and prop. | ||
``` | ||
2. **dealy**: | ||
```javascript | ||
getters.delay(option) // returns delay time in microsecondsm according to given option. | ||
// getters.delay("10m") ==> 600000 | ||
``` | ||
###### Types of options formats are: | ||
* ```y/year/years```: returns delay in years. | ||
* ```d/day/days```: returns delay in days. | ||
* ```h/hour/hours``` : returns delay in hours. | ||
* ```w/week/weeks```: returns delay in weeks. | ||
* ```mo/mos/months``` : returns delay in months. | ||
* ```m/minute/minutes```: returns delay in minutes. | ||
* ```s/second/seconds``` : returns delay in seconds. | ||
* ```ms/millisecond/milliseconds``` : returns delay in milliseconds. | ||
# Tests | ||
@@ -65,0 +79,0 @@ |
import obj from './object'; | ||
import delay from './delay'; | ||
module.exports = { | ||
obj, | ||
delay, | ||
}; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15495
27
300
84
0