@jjkavalam/scanner

1.0.0 • Public • Published

scanner

An easy-to-use tokenizer

Usage

const { Scanner, Patterns } = require("@jjkavalam/scanner");

const sc = new Scanner(`... contents ...`);

// scan until end-of-line
const firstLine = sc.scanUntil(Patterns.EOL);

// or any arbitrary string or Regexp pattern
const nextColumn = sc.scanUntil(",");

// ...

Readme

Keywords

none

Package Sidebar

Install

npm i @jjkavalam/scanner

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.73 kB

Total Files

5

Last publish

Collaborators

  • jjkavalam_admin