0.3.0 • Published 10 years ago

urlshortener v0.3.0

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

About

url shortener for node.js

List of supported/comming services

Sample

var shortener = require('shortener');

var s = new shortener.Shortener();

s.readability('https://www.readability.com/', function(result) {
  console.log('\nReadability:');
  console.log('Long url:', result.longUrl);
  console.log('Short url:', result.shortUrl);
});

s.mtny('https://sites.google.com/site/mtnymobi2/', function(result) {
  console.log('\nMtny:');
  console.log('Long url:', result.longUrl);
  console.log('Short url:', result.shortUrl);
})

Development

Setup

git clone https://github.com/khiro/urlshortener.git
cd urlshortener
npm install

Testing

Replace GOOGLE TOKEN and BITLY TOKEN with corresponding tokens:

GOOGLE="GOOGLE TOKEN" BITLY="BITLY TOKEN" npm test

License

urlshortener licensed under MIT license. Basically you can do whatever you want to with it.

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

13 years ago