
Security News
The Code You Didn't Write Is Still Yours to Defend
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.
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
The npm package web-byline receives a total of 3 weekly downloads. As such, web-byline popularity was classified as not popular.
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.
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
AI agents are pulling packages into environments no scanner is watching, creating exposure before security teams can see it.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.