unshorter

1.2.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i unshorter

      Weekly Downloads

      60

      Version

      1.2.2

      License

      MIT

      Unpacked Size

      3.29 kB

      Total Files

      5

      Last publish

      Collaborators

      • aliazhar-id