@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(",");

// ...

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.01latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.01

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