node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

underscore.url

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