Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
shorten URLs naturally, without external link shorteners
JavaScript Shell Ruby Cucumber
Branch: master
Failed to load latest commit information.
bin jslint bin/
features rspec
hooks hooks
lib jshint
test mocha
.editorconfig update editorconfig
.eslintignore eslint
.eslintrc editorconfig
.gitignore editorconfig
.jshintignore jshint
.jshintrc jshint
.jslintrc jslint
.npmignore exclude development files from npm package
Gemfile gem
Gruntfile.js npm idioms
Guardfile-cucumber regex
Guardfile-lint regex
README.md editorconfig
package.json editorconfig
upstart.conf editorconfig

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

Something went wrong with that request. Please try again.