Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
deshortify
Advanced tools
NodeJS module which turns short URLs into long, meaningful, crap-less URLs
Because I don't like short URLs. They don't convey information.
Because I don't like URLs with spammy URL parameters that take up space in my screen.
Because I feel that the existing de-shortening libraries for NodeJS (like unshort, or url-unshort) are lacking.
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.
// Import the library
import Deshortifier from '../../../deshortify/src/deshortify'
// Create an instance
let deshortifier = new Deshortifier({ verbose: true });
// Call deshortify(), which returns a Promise for a URL.
deshortifier.deshortify('https://t.co/p0N0Zl8rx6').then(u=>console.log('Final URL is ' + u));
v0.1.2 (2017-05-15)
FAQs
Turns short URLs into long, meaningful, crap-less URLs.
The npm package deshortify receives a total of 19 weekly downloads. As such, deshortify popularity was classified as not popular.
We found that deshortify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.