Skip to content

khiro/urlshortener

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

url shortener for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published