drabs icon indicating copy to clipboard operation
drabs copied to clipboard

A collection of little JavaScript utilities

drabs.js

Drabs is a collection of little JavaScript utilities that have their origin in the weekly A Drip of JavaScript newsletter.

The name is a pun on the (incorrect) phrase "drips and drabs", meaning little by little.

In addition to GitHub issues, discussion of Drabs is also welcome on the JS Drip Google Group.

How to Contribute

  • Maintain the existing coding style (partially enforced by JSHint).
  • Don't edit the files in dist. We will build those from src before each release.
  • If possible, run JSHint and the Jasmine specs before sending a pull request (details below).
  • If possible, include Jasmine specs when contributing new features.

Linting and Specs

To run JSHint and Jasmine, you'll need Node.js 0.8.x or higher installed. Once you've got that, run npm install in the root of your local repository. This will install all of the development dependencies.

You just need to know four commands.

  • grunt jshint will lint the files.
  • grunt jasmine will run the specs.
  • grunt test will run both.
  • grunt watch will watch the source and spec files and automatically run JSHint and Jasmine each time you save.

License

Drabs is released under the MIT license.

Books by the Author

A Drip of JavaScript - The Complete Collection Jasmine Testing - A Cloak & Dagger Guide