Socket
Socket
Sign inDemoInstall

yow

Package Overview
Dependencies
2
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

8

package.json
{
"name": "yow",
"version": "1.0.4",
"version": "1.0.5",
"description": "You Only Wish module",

@@ -11,3 +11,3 @@ "main": "yow.js",

"type": "git",
"url": "git+https://github.com/meg768/node-yow.git"
"url": "git+https://github.com/meg768/yow.git"
},

@@ -17,5 +17,5 @@ "author": "Magnus Egelberg",

"bugs": {
"url": "https://github.com/meg768/node-yow/issues"
"url": "https://github.com/meg768/yow/issues"
},
"homepage": "https://github.com/meg768/node-yow#readme",
"homepage": "https://github.com/meg768/yow#readme",
"dependencies": {

@@ -22,0 +22,0 @@ "extend": "^3.0.0",

@@ -1,46 +0,22 @@

# node-yow
# Yow
Contains stuff for Node You Only Wished was there in the first place.
Toolbox for Node. Contains stuff you only wished was there in the first place.
# Installation
## Installation
npm install yow
npm install yow --save
# Contents
## Methods
sprintf()
Just as you would expect. Uses the npm module 'sprintf-js'.
extend()
Again, just as you would expect. Uses the npm module 'extend'.
mkdir(path)
Creates the directory you specify. It will create multiple directories if they do not exit.
fileExists(path)
Nothing fancy, it just returns true/false.
isType(object, type)
Returns true/false if typeof equals 'type'
isArray(object)
isNumber(object)
isString(object)
isDate(object)
Returns just as you would expect. BTW null is not an object.
choose(array)
Returns a randomly chosen object in the specified array
rand(min, max)
Returns a random number from min to max (inclusive)
- **sprintf(args)** - Just as you would expect. Uses the npm module 'sprintf-js'.
- **extend(args)** - Again, just as you would expect. Uses the npm module 'extend'.
- **mkdir(path)** - Creates the directory you specify. It will create multiple directories if they do not exit.
- **fileExists(path)** - Nothing fancy, it just returns true/false.
- **isType(object, type)** - Returns true/false if typeof equals 'type'
- **isArray(object)** - Is object an array?
- **isNumber(object)** - Is object a JavaScript number object?
- **isString(object)** - Iects object a string?
- **isDate(object)** - Is object a Date object?
- **isObj(object)** - Is object an object? BTW **null** is not an object.
- **choose(array)** - Returns a randomly chosen object in the specified array.
- **rand(min, max)** - Returns a random number from min to max (inclusive).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc