Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
stringstream
Advanced tools
fs = require('fs')
zlib = require('zlib')
strs = require('stringstream')
var utf8Stream = fs.createReadStream('massiveLogFile.gz')
.pipe(zlib.createGunzip())
.pipe(strs('utf8'))
No need to deal with setEncoding()
weirdness, just compose streams
like they were supposed to be!
Handles input and output encoding:
// Stream from utf8 to hex to base64... Why not, ay.
fs.createReadStream('myFile').pipe(strs('utf8', 'hex')).pipe(strs('hex', 'base64'))
Also deals with base64
output correctly by aligning each emitted data
chunk so that there are no dangling =
characters:
var stream = fs.createReadStream('myHugeFile').pipe(strs('base64'))
var fileStr = ''
stream.on('data', function(data) { fileStr += data })
stream.on('end', function() {
console.log('My base64 encoded file is: ' + fileStr) // Wouldn't work with setEncoding()
})
FAQs
Encode and decode streams into string streams
The npm package stringstream receives a total of 542,031 weekly downloads. As such, stringstream popularity was classified as popular.
We found that stringstream 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.