New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aleppo

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aleppo - npm Package Compare versions

Comparing version 0.0.0-beta.1 to 1.0.0-rc.1

src/getters/delay/ README.md

4

package.json
{
"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,
};
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