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

yow

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yow - npm Package Compare versions

Comparing version 1.0.39 to 1.0.41

gopher.js

55

package.json
{
"name": "yow",
"version": "1.0.39",
"description": "You Only Wish module",
"main": "yow.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/meg768/yow.git"
},
"author": "Magnus Egelberg",
"license": "ISC",
"bugs": {
"url": "https://github.com/meg768/yow/issues"
},
"homepage": "https://github.com/meg768/yow#readme",
"keywords": [
"toolbox",
"toolbelt",
"basics",
"essentials"
],
"dependencies": {
"extend": "^3.0.0",
"sprintf-js": "^1.0.3"
}
"name": "yow",
"version": "1.0.41",
"description": "You Only Wish module",
"main": "yow.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/meg768/yow.git"
},
"author": "Magnus Egelberg",
"license": "ISC",
"bugs": {
"url": "https://github.com/meg768/yow/issues"
},
"homepage": "https://github.com/meg768/yow#readme",
"keywords": [
"toolbox",
"toolbelt",
"basics",
"essentials"
],
"dependencies": {
"client-request": "^1.2.0",
"extend": "^3.0.0",
"sprintf-js": "^1.0.3"
}
}

@@ -13,2 +13,5 @@ # Yow

var sprintf = require('yow/sprintf');
var extend = require('yow/extend');
- **sprintf(args)** - Just as you would expect. Uses the npm module 'sprintf-js'.

@@ -20,2 +23,8 @@ - **extend(args)** - Again, just as you would expect. Uses the npm module 'extend'.

var mkdir = require('yow/fs').mkdir;
var mkpath = require('yow/fs').mkpath;
var fileExists = require('yow/fs').fileExists;
var readJSON = require('yow/fs').readJSON;
var writeJSON = require('yow/fs').writeJSON;
- **mkdir(path)** - Creates the directory you specify.

@@ -27,5 +36,14 @@ - **mkpath(path)** - Creates the directory you specify. It will create multiple directories if they do not exit.

### Type Checks
var isType = require('yow/is').isType;
var isArray = require('yow/is').isArray;
var isNumber = require('yow/is').isNumber;
var isString = require('yow/is').isString;
var isDate = require('yow/is').isDate;
var isFunction = require('yow/is').isFunction;
var isObject = require('yow/is').isObject;
var isInteger = require('yow/is').isInteger;
var isFloat = require('yow/is').isFloat;
- **isType(object, type)** - Returns true/false if typeof equals 'type'.

@@ -41,5 +59,6 @@ - **isArray(object)** - Is object an array?

### Random
var random = require('yow/random');
- **random()** - Returns Math.random().

@@ -51,4 +70,8 @@ - **random(integer)** - Returns a random number from 0 to the integer specified (exclusive).

Also available as require('yow/random')
### Range
var range = require('yow/range');
- **range(min, max, step)** - Returns an range array generated by **min**, **max**, and **step**.

@@ -58,5 +81,28 @@

- **prefixLogs(prefix)** - Prefix all logs with the specified prefix. This may be a function or a string expression.
var logs = require('yow/logs');
- **logs.prefix(prefix)** - Prefix all logs with the specified prefix. This may be a function or a string expression.
Default is the current date/time.
- **redirectLogs(file)** - Redirects all logging to the specified file. If not specified, a log file with the current
- **logs.redirect(file)** - Redirects all logging to the specified file. If not specified, a log file with the current
date/time will be created.
### Queue
var Queue = require('yow/queue');
var queue = new Queue();
- **queue.enqueue(promise)** - Enqueues a promise into an array for execution
- **queue.dequeue()** - Returns a new promise object and resolves when the queue has been executed.
- **queue.queue(array)** - Sets the array of promises that will be executed by **dequeue**.
### Timer
var Timer = require('yow/timer');
var timer = new Timer();
- **timer.setTimer(delay, fn)** - Executes the specified function **fn** after a delay.
Previously set timers are cancelled.
- **timer.cancel()** - Cancels the timer.
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