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.
strict-uri-encode
Advanced tools
The strict-uri-encode npm package is designed for percent-encoding a string as per RFC 3986. It is particularly useful for encoding URI components more strictly than what is provided by native JavaScript functions like encodeURIComponent. This can be essential in situations where you need to ensure that characters are encoded in a way that is compliant with certain web standards or APIs that expect strictly encoded URIs.
Percent-encoding URI components
This feature allows you to percent-encode a URI component more strictly than encodeURIComponent. For example, characters such as '!', '*', ''', '(', and ')' will be encoded, which are not encoded by the encodeURIComponent function. This is useful when you need to encode these characters in a URI component to ensure it adheres to certain standards or API expectations.
"strict-uri-encode('! * '()')"
The query-string package provides parsing and stringifying of URL query strings. It is similar to strict-uri-encode in that it deals with URI components, but it offers a broader set of functionalities for handling the entire query string.
Similar to query-string, the qs package allows for parsing and stringifying query strings with nested objects support. While strict-uri-encode focuses on strict encoding of individual URI components, qs offers comprehensive handling of query strings, including parsing and stringification, with an emphasis on handling complex objects and arrays.
A stricter URI encode adhering to RFC 3986
$ npm install --save strict-uri-encode
const strictUriEncode = require('strict-uri-encode');
strictUriEncode('unicorn!foobar');
//=> 'unicorn%21foobar'
strictUriEncode('unicorn*foobar');
//=> 'unicorn%2Afoobar'
Type: string
, number
String to URI encode.
MIT © Kevin Mårtensson
FAQs
A stricter URI encode adhering to RFC 3986
The npm package strict-uri-encode receives a total of 6,543,240 weekly downloads. As such, strict-uri-encode popularity was classified as popular.
We found that strict-uri-encode 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
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.