
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
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 9,366,403 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.