Note
Added encodeURIComponent in version >=2.0.2.
About
node-url-shortener help you to shorten your big URLs. Currently we support is.gd and cdpt.in because these platforms do not need any kind of API key. You can shorten number of URLs without any limit without using any API keys.
For more, you can visit cdpt.in
Installation
Install via NPM
npm install node-url-shortener --save
Example
var shortUrl = require("node-url-shortener");
shortUrl.short("https://codeportal.in", function (err, url) {
console.log(url);
});