unmask-url
v1.0.0
Published
Deshorten a short link, and reveal where it's truly going.
Downloads
11
Readme
unmask-url
Deshorten a short link, and reveal where it's truly going.
Installation
# using npm
npm install unmask-url
# using yarn
yarn add unmask-url
Usage
# using require
const unmask = require('unmask-url');
# using import
import unmask from 'unmask-url';
Example
Using promises:
unmask('dis.gd/report').then(data => console.log(data))
Using async/await:
const revealURL = async function () {
const data = await unmask('dis.gd/report')
console.log(data);
};
revealURL();
Response
{
url: 'dis.gd/report',
result: 'https://support.discord.com/hc/en-us/requests/new?ticket_form_id=360000029731',
journey: 'http://dis.gd/report >> http://support.discord.com/hc/en-us/requests/new?ticket_form_id=360000029731'
}