1.2.0 • Published 3 years ago
easy-shorten-url v1.2.0
Easy shorten url
Shorten a URL very easily with this url shortener!
💻 Example
- Install module:
npm install easy-shorten-url
- Insert the following code for a good result:
const url = require("easy-shorten-url");
url.shorten('https://dotwood.media/').then(res => {
console.log(res); // Returns https://url.dotwood.media/8h6ywx5z
}).catch(err => {
console.log(err);
});
URL with a custom code
const url = require("easy-shorten-url");
url.custom('https://dotwood.media/', 'dm').then(res => {
console.log(res); // Returns https://url.dotwood.media/8h6ywx5z
}).catch(err => {
console.log(err);
});
📑 License
This project has an Apache 2.0 license