![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
node v0.10.x required for the streams2 support.
Split your streams into chunks with an arbitrary-length matcher. Does not consume the
matcher bytes so you can further analyze them or use them as delimiter for parsing. Also
expose the leftover
buffer to make connection mode-switching easier to implement.
Chunker is designed to work with very small splitter token such as CRLF or '\0'.
This module exports a Chunker
class. This is simply an instance of a
Transform
stream so you can pipe things in and it will only output (emit
readable
) a chunk that has all the content from the start of the first chunk until the
end of the specified splitter token (called a matcher
inside the codebase)
For convenience, you can also listen for the chunker's chunk
event. Additionally, you
can inspect the leftover
property to get at the last chunk that has yet to be processed
once the stream ends.
var fs = require('fs'), Chunker = require('./index.js');
var chunker = new Chunker({ matcher: 'what ' })
, input = fs.createReadStream('./input.txt');
chunker.on('readable', function() {
var chunk;
while (chunk = chunker.read()) {
console.log(chunk.toString());
}
});
process.stdin.once('end', function() {
console.log(chunker.leftover.toString());
})
process.stdin.pipe(chunker);
$ cat input.txt | node example.js
do what
you want to do not what
you are told to do and do what
makes you happy and keep away from what
makes you sad but do what
you have to do that is what
resposibility means but do not forget what
makes your heart tick or you will forgot what
you were born to be
BSD3 (see LICENSE file)
FAQs
Chunk/split your stream without eating the splitter char.
The npm package chunker receives a total of 6 weekly downloads. As such, chunker popularity was classified as not popular.
We found that chunker 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.