yow
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"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). |
8917
23