1.2.0 • Published 3 years ago

easy-shorten-url v1.2.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Easy shorten url

Shorten a URL very easily with this url shortener!

downloadsBadge versionBadge

💻 Example

  1. Install module: npm install easy-shorten-url
  2. 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

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago