readlines-web
v1.0.0
Published
Use ReadableStreams to read the content of a file line-by-line.
Downloads
30
Maintainers
Readme
BugSplat
Crash and error reporting built for busy developers.
readline-web
A nifty little library for reading files line-by-line using ReadableStreams and is compatible in both node.js and the browser. Inspired by this post on MDN.
Usage
Install this package locally.
npm i readline-web
Import makeTextFileLineIterator
and create an iterator.
import { makeTextFileLineIterator } from 'readlines-web';
You can process each line in a loop.
for await (let line of iterator) {
console.log(line);
}
Or process a single line using next()
.
const { value, done } = await iterator.next();
🐛 About
BugSplat is a software crash and error reporting service with support for macOS, iOS, Qt, Unreal Engine and many more. BugSplat automatically captures critical diagnostic data such as stack traces, log files, and other runtime information. BugSplat also provides automated incident notifications, a convenient dashboard for monitoring trends and prioritizing engineering efforts, and integrations with popular development tools to maximize productivity and ship more profitable software.