New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

unmask-url

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unmask-url

Deshorten a short link, and reveal where it's truly going.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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'
}

Support

buy-me-a-coffee paypal patreon

Keywords

unshorten

FAQs

Package last updated on 24 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts