Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.28 KB

readme.md

File metadata and controls

24 lines (18 loc) · 1.28 KB

Description

A collection of Javascript prototypes, helper functions, utilities, and other general purpose tools useful for a variety of projects. Created as a personal collection of useful things for DrowsyDev projects.

Installation

Add the NPM package to your project by running:

npm install --save drowsy-dev-helpers

Or install globally with

npm install -g drowsy-dev-helpers

Usage

Simply require and invoke the package. There is no need to bind the result to a variable, unless you want to invoke the modules at a later point in your code. (Although it's recommended to invoke upon requiring at the top of your module)

require('drowsy-dev-helpers')();

To avoid unnecessary overhead, you may also import individual modules of the collection using the following syntax:

require('drowsy-dev-helpers').numbers()

Modules

To allow for modularity and overhead reduction, you can require individual modules of the larger package to get just the pieces that are useful for your particular file or project. A comprehensive list of these modules are listed below:

  • require('drowsy-dev-helpers').numbers() -- Prototypes that can be used on numbers
  • require('drowsy-dev-helpers').helpers() -- General purposes helper functions

Author

DrowsyDev