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

    yow

Contains stuff for Node You Only Wished was there in the first place.


Version published
Maintainers
1
Install size
70.5 kB
Created

Readme

Source

node-yow

Contains stuff for Node You Only Wished was there in the first place.

Installation

npm install yow

Contents

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)

FAQs

Last updated on 14 May 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc