shorten URLs naturally, without external link shorteners
JavaScript Shell Ruby Cucumber
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
features
hooks
lib
test
.editorconfig
.envrc.sample
.eslintignore
.eslintrc
.gitignore
.jshintignore
.jshintrc
.jslintrc
.node-version
.npmignore
.ruby-version
Gemfile
Gruntfile.js
Guardfile-cucumber
Guardfile-lint
README.md
package.json
upstart.conf

README.md

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/.