deshortify
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,3 @@ | ||
#!/usr/bin/env node | ||
let Deshortifier = require('../dist/deshortify.js'); | ||
@@ -2,0 +4,0 @@ |
{ | ||
"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 |
43966
567
37