Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Encode and decode rfc2231 (MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations) and rfc5987 (Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters).
var rfc2231 = require('rfc2231');
console.log(rfc2231.unfoldAndDecodeParameters({
'title*0*': "us-ascii'en'This%20is%20even%20more%20",
'title*1*': '%2A%2A%2Afun%2A%2A%2A%20',
'title*2': "is it not?"
});
// {title: "This is even more ***fun*** is it not?"}
console.log(rfc2231.encodeAndFoldParameters({
foo: '0123456789012345678901234567890123456789012345678901234567890123456789'
});
// {
// 'foo*0': '"012345678901234567890123456789012345678901234567890123456789"',
// 'foo*1': '"0123456789"'
// }
rfc2231.unfoldAndDecodeParameters
takes advantage of the iconv
module if available, and otherwise falls back to iconv-lite
.
FAQs
Encode and decode rfc2231/rfc5987
We found that rfc2231 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.