Skip to content

Minimalist and lightweight URL unshortener for Node.js

License

Notifications You must be signed in to change notification settings

aliazhar-id/unshorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unshorter

Promise-based, Minimalist and Lightweight URL unshortner for Node.js

Installation

npm install unshorter --save

Usage

// ES6 Modules
import unshorter from 'unshorter';

// CommonJS Modules
const unshorter = require('unshorter');

const shortUrl = 'https://s.id/aliazhar-github' //Example

unshorter(shortUrl)
 .then((longUrl) => console.info('Result:', longUrl))
 .catch((err) => console.error('Oops!'));

License

This project is licensed under MIT License.