drabs
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 fromsrcbefore 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 jshintwill lint the files.grunt jasminewill run the specs.grunt testwill run both.grunt watchwill watch the source and spec files and automatically run JSHint and Jasmine each time you save.
License
Drabs is released under the MIT license.