things

common imports

npm install things
22 downloads in the last week
28 downloads in the last month

Things

Build Status

NPM

Things is a simple CommonJS module that exports commonly used utilities and a set of best of breed selected 3rd party utility modules. It purely exists to avoid having several lines of boilerplate imports in every file and is designed to be used with the destructuring syntax from CoffeScript or JavaScript ES6. Modules are lazy loaded so they only add delay once they are used.

Install

npm install --save things

Usage

Just import whatever you need.

In JavaScript ES6,

{path, fs, util, crypto, _, moment} = require('things');

or in Coffee-Script

{assert, _} = require 'things'

or in JS5

var things = require('things');
things._(...);
things.fs(...);

vs

var fs = require('fs');
var url = require('url');
var _ = require('lodash');
var moment = require('moment');
var async = require('async');
...

Includes

Builtins exported for convienence

  • assert
  • util
  • fs
  • path
  • url
  • querystring
  • crypto

Third Party modules

Developer

Create Github issues for all bugs, features & requests. Pull requests are welcome.

Test

Test with grunt test

License

BSD 3-Clause

npm loves you