New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

deshortify

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deshortify - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

bin/deshortify.js

@@ -0,1 +1,3 @@

#!/usr/bin/env node
let Deshortifier = require('../dist/deshortify.js');

@@ -2,0 +4,0 @@

2

package.json
{
"name": "deshortify",
"version": "1.0.0",
"version": "1.0.1",
"description": "Turns short URLs into long, meaningful, crap-less URLs.",

@@ -5,0 +5,0 @@ "main": "dist/deshortify.js",

@@ -5,3 +5,14 @@ # Deshortify

## Features
Deshortify will:
* Follow URLs, performing HTTP HEAD requests.
* Get rid of useless URL parameters.
* Roll back a URL redirect when it looks like a paywall or similar.
For example, it will turn `http://bit.ly/2qzPrcN` into `http://www.liberation.fr/direct/element/une-elue-du-personnel-de-whirlpool-candidate-suppleante-pour-en-marche_63786/?utm_campaign=Echobox&utm_medium=Social&utm_source=Twitter#link_time=1494593774`, **and then** into `http://www.liberation.fr/direct/element/une-elue-du-personnel-de-whirlpool-candidate-suppleante-pour-en-marche_63786/#link_time=1494593774`.
Deshortify will keep a cache of resolved URLs, so that known ones are not re-requested on the network.
## Why

@@ -15,10 +26,2 @@

Deshortify will follow URLs, performing HTTP HEAD requests, and then it will get
rid of useless URL parameters.
For example, it will turn `http://bit.ly/2qzPrcN` into `http://www.liberation.fr/direct/element/une-elue-du-personnel-de-whirlpool-candidate-suppleante-pour-en-marche_63786/?utm_campaign=Echobox&utm_medium=Social&utm_source=Twitter#link_time=1494593774`, **and then** into `http://www.liberation.fr/direct/element/une-elue-du-personnel-de-whirlpool-candidate-suppleante-pour-en-marche_63786/#link_time=1494593774`.
Deshortify will keep a cache of resolved URLs, so that known ones are not re-requested on the network.
## Usage

@@ -28,3 +31,3 @@

// Import the library
import Deshortifier from '../../../deshortify/src/deshortify'
import Deshortifier from 'deshortify'

@@ -31,0 +34,0 @@ // Create an instance

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc