1.0.3 • Published 4 years ago

ouo-promise v1.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

ouo-promise

Shorten links using ouo.io and earn money with promises!

Install

$ npm install --save ouo-promise

Usage

const Ouoio = require('ouo-promise');

const o = new Ouoio('YOUR_API_KEY'); // Fill in your API KEY here.
// const o = new Ouoio(); // Or leave it blank.

(async () => {
	const sUrl = await o.short('https://www.google.com');
	console.log(sUrl);

	const urls = ['https://www.facebook.com', 'https://github.com'];
	const sUrls = await o.shortMany(urls);
	console.log(sUrls);
})();

APIs

.short(url)

Shorten a URL with promise.

.shortMany(arr)

Shorten an array of URL with promise.

License

MIT