Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    underscore.urlpublic

    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

    Keywords

    none

    install

    npm i underscore.url

    Downloadsweekly downloads

    1

    version

    0.2.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar