underscore.url
URL Parsing with Extensions for JavaScript
Install
npm install underscore.url
Standalone usage:
var _url = require('underscore.url');
Integrate with Underscore.js:
var _ = require('underscore');
_.mixin(require('underscore.url').url);
API
_.url("http://www.youtube.com/watch?v=ZgRnLM9Vi24");
// #<YoutubeVideo id="ZgRnLM9Vi24" src="http://www.youtube.com/watch?v=ZgRnLM9Vi24" srcImage="http://img.youtube.com/ZgRnLM9Vi24">
Development
npm install uglify-js
coffee -c --no-wrap -o lib -w src
coffee -c -o lib -w src
jasmine-node --coffee .
coffee --join underscore.url.min.js --compile src/*.coffee
cake build
Resources
- http://vowsjs.org/
- http://zombie.labnotes.org/
- http://visionmedia.github.com/masteringnode/book.html
- http://www.benjamincoe.com/post/10326713013/building-your-first-node-js-library
- https://github.com/TrevorBurnham/connect-assets/blob/master/src/assets.coffee
- https://github.com/TrevorBurnham/snockets