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

You Only Wish module

  • 1.0.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
72
increased by18.03%
Maintainers
1
Weekly downloads
 
Created
Source

Yow

Toolbox for Node. Contains stuff you only wished was there in the first place.

Installation

npm install yow --save

Methods

  • 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).

FAQs

Package last updated on 15 May 2016

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc