Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
conservative-normalize-url
Advanced tools
Normalize URLs conservatively, taking into account old specs to avoid breaking things.
Normalize URLs conservatively, taking into account old specs to avoid breaking things.
I created this library, because I was frustrated by the lack of backwards-compatibility of existing URL normalizers. If you're normalizing a URL, it's likely you're dealing with a user-supplied URL. After working on software that handles bookmarks for a long time, I realized quite how diverse those can be. This is what I'm using now.
/foo//bar/../baz
=> /foo/baz
; when the protocol is known)www.
;
as a query parameter separatorconst normalizeUrl = require('conservative-normalize-url')
normalizeUrl('HtTp://foobar.com/bla bla h/shake?this=öppa&oppa=this') // http://foobar.com/bla%20bla%20h/shake?oppa=this&this=%C3%B6ppa
(c) Marcel Klehr MIT License
FAQs
Normalize URLs conservatively, taking into account old specs to avoid breaking things.
The npm package conservative-normalize-url receives a total of 4 weekly downloads. As such, conservative-normalize-url popularity was classified as not popular.
We found that conservative-normalize-url 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.