1.0.2 • Published 9 months ago
shortfast-js-module v1.0.2
Shorfast.xyz NodeJS Package
Install package with npm install shortfast-js-module
Code Example
import ShortFast from 'shortfast-js-module';
(async () => {
const sf = new ShortFast('YOUR_API_KEY');
try {
let response = await sf.createShortUrl('YOUR_LONG_URL', 'YOUR_SHORT_DOMAIN'); //shortdomain is optional, possible values: sf2.it, 2sf.be, sful.xyz, sf4.eu (default)
console.log(response);
} catch (error) {
console.error(error);
}
})();