Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@smithy/url-parser
Advanced tools
[![NPM version](https://img.shields.io/npm/v/@smithy/url-parser/latest.svg)](https://www.npmjs.com/package/@smithy/url-parser) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/url-parser.svg)](https://www.npmjs.com/package/@smithy/url-parser)
@smithy/url-parser is a utility package designed to parse URLs. It is part of the Smithy framework, which is used for building SDKs for AWS services. This package provides a simple and efficient way to parse URLs into their components, such as protocol, hostname, path, query parameters, and more.
Parse URL
This feature allows you to parse a URL into its components. The `parseUrl` function takes a URL string and returns an object containing the protocol, hostname, path, query parameters, and hash.
const { parseUrl } = require('@smithy/url-parser');
const url = 'https://example.com/path?name=value#hash';
const parsedUrl = parseUrl(url);
console.log(parsedUrl);
The 'url' package is a Node.js core module that provides utilities for URL resolution and parsing. It offers similar functionality to @smithy/url-parser but is more widely used and maintained as part of the Node.js standard library.
The 'whatwg-url' package is a full implementation of the WHATWG URL Standard. It provides a more comprehensive and standards-compliant way to parse and manipulate URLs compared to @smithy/url-parser.
The 'url-parse' package is a lightweight URL parser that works in both Node.js and browser environments. It offers similar functionality to @smithy/url-parser but with additional features like URL normalization and support for custom URL schemes.
FAQs
[![NPM version](https://img.shields.io/npm/v/@smithy/url-parser/latest.svg)](https://www.npmjs.com/package/@smithy/url-parser) [![NPM downloads](https://img.shields.io/npm/dm/@smithy/url-parser.svg)](https://www.npmjs.com/package/@smithy/url-parser)
The npm package @smithy/url-parser receives a total of 15,049,971 weekly downloads. As such, @smithy/url-parser popularity was classified as popular.
We found that @smithy/url-parser 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
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.