
Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
I'll give you the right URL, but don't call me Shirley!
Parses URLs from user input (with potential typos in protocols, bad copy+paste, etc.) and returns a proper URL.
It has no dependencies, and it's meant to be this simple.
It doesn't check if the URL exists, you can do that in many different ways.
It assumes only http
and https
protocols for URLs.
If there's a "mistake" in the URL protocol, it defaults to https
.
It only has a single method: parse(url: string)
which returns the same string, parsed.
import shurley from 'https://deno.land/x/shurley@1.0.3/mod.ts';
const parsedUrl = shurley.parse('example.com');
console.log(parsedUrl); // Outputs 'https://example.com'
npm install --save-exact shurley
const shurley = require('shurley'); // or import shurley from 'shurley';
const parsedUrl = shurley.parse('example.com');
console.log(parsedUrl); // Outputs 'https://example.com'
Requires deno
.
make format
make test
After committing and pushing, just run make publish VERSION=x.y.z
.
FAQs
Validate or fix URLs from user input. People make mistakes!
The npm package shurley receives a total of 17 weekly downloads. As such, shurley popularity was classified as not popular.
We found that shurley demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
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.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.