stringreader

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i stringreader

Weekly Downloads

4

Version

1.1.0

License

MIT

Last publish

Collaborators

  • stoney