textics-stream
text/ics-stream
is a node version of textics. Counts lines, words, chars and spaces for a stream of strings 🚿
npm install textics-stream
API
; const txtStream = ; // Start countingmyStream; // Get lat chunk stat resulttxtStream; // Get all stat counterstxtStream;
Example
;; // Create read stream for file you want to read formconst rStream = fs; // Create TexticsStream instanceconst txtStream = ; // Pass reading stream to texticsrStream; // For each chunk passed, give me the resulttxtStream; // When done, give me the final resultrStream;
Related projects
-
textics - Using textics for browser.
-
packageSorter - Sorting packages for monorepos production.
-
builderz - Building your project with zero config.
-
corename - Extracts package name.
-
get-info - Utility functions for projects production.
-
move-position - Moves element in given array form index-A to index-B
Tests
npm test
License
This project is licensed under the GPL-3.0 License