
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
Line-by-line Stream transformer for web
(A ported version of jahewson/node-byline for using with whatwg streams) If you want to use byLine in node, then i recomend jahewson package
Currently only ReadableStream is implemented in Blink. TransformStream + WritableStream are on the way to be finilized. Until then you need web-stream-polyfill
The byline module can be used as a function to quickly pipe throught a readable stream to a WritableStream:
rs = new ReadableStream({...})
ws = new WritableStream({ write: console.log }
rs.pipeThrough(byLine())
.pipeTo(ws)
To read a large CSV from a file (or input) for example you can include Screw-FileReader to turn a blob into a stream
Example here: https://jsfiddle.net/gp802r79/
And below:
file = new File([content], 'large data.csv')
stdout = new WritableStream({ write: console.log }
file
.stream()
.pipeThrough(byLine())
.pipeTo(stdout)
byline skips empty lines
Unlike other modules (of which there are many), web-byline contains no:
const, let, classes and all that and simply include this in your own build process since you are probably going to minify it anyway.FAQs
Line-by-line Stream transformer for web
We found that web-byline 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.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.