stringreader
v1.1.0
Published
Simple string reader for JavaScript
Downloads
20
Maintainers
Readme
stringreader
Simple string reader for JavaScript
Installation
npm install stringreader
Usage
var StringReader = require('stringreader');
var reader = new StringReader('Split this text by spaces.');
while (!reader.end()) {
console.log(reader.readUntil(' ', true));
}
This is largely based on a gist I made a couple of years ago.
License
MIT