Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
96 lines (61 sloc) 1.61 KB

um - shorten URLs naturally, without external link shorteners

um.js is a link shortener for certain types of URLs, that doesn't require a database or central server to operate.

EXAMPLE

$ um-cli "http://www.amazon.com/What-Is-Node-ebook/dp/B005ISQ7JC/ref=sr_1_1?ie=UTF8&qid=1361302974&sr=8-1&keywords=node.js"
http://www.amazon.com/dp/B005ISQ7JC

$ um-cli "http://stackoverflow.com/questions/2353818/how-do-i-get-started-with-node-js"
http://stackoverflow.com/questions/2353818

HOMEPAGE

https://github.com/mcandre/node-um

NPM

https://www.npmjs.com/package/um

REQUIREMENTS

Optional

DEVELOPMENT

Test

Ensure the logic is correct:

$ npm test

> um@0.0.3 test /Users/andrew/Desktop/src/node-um
> mocha



  um
    shorten
      ✓ should shorten amazon links
      ✓ should shorten stackoverflow links


  2 passing (7ms)

Lint

Keep the code tidy:

$ grunt lint

Spell Check

$ aspelllint
...

Local CI

Guard can automatically run testing when the code changes:

$ bundle
$ guard -G Guardfile-cucumber
...

Guard can automatically lint when the code changes:

$ bundle
$ guard -G Guardfile-lint
...

Git Hooks

See hooks/.