0.2.7 • Published 9 years ago

line-source v0.2.7

Weekly downloads
17
License
MIT
Repository
github
Last release
9 years ago

line-source

js-standard-style

What is it?

It returns a source for a line of text.

const LineSource = require('line-source')

const l = new LineSource('foo bar quux')

l.currentChar // => 'f'
l.position // => 1
l.peekChar() // => 'o'
l.nextChar() // => 'o'

// All methods and properties return `null' once the 
// currentChar has moved past the end of the source
// string.
//
// An error is thrown if the input string contains
// unescaped newline characters (`\n`).

How do I work on it?

development

git clone https://github.com/sterpe/line-source.git
cd line-source
make

build

make build

test

make JEST_FLAGS=--coverage test

lint

make lint

Consult the Makefile for further details.

0.2.7

9 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago