Home Manual Reference Source Test Repository

Function

Static Public Summary
public

chain(stream: Stream): *

Converts a stream of streams of tokens to a stream of tokens.

public

csv(stream: Stream): *

Converts a stream of comma separated values to a stream of values.

public

exhaust(stream: Stream)

Exhausts a stream.

public

ignore(stream: Stream, toignore: Iterable): *

Filters a stream by ignoring a given set of tokens.

public

integer(stream: Stream): *

Converts as many tokens as possible into an integer.

public

map(callable: Callable, stream: Stream): *

Applies a callable to each token of a stream.

public

skip(stream: Stream, toskip: Iterable): *

Outputs the next token of a stream that is not contained in a given toskip set.

public

split(stream: Stream, sep: Iterable): *

Splits a stream into a stream of streams according to some set of separators.

public

* toiterable(stream: Stream)

Converts a stream to an iterable.

public

tsv(stream: Stream): *

Converts a stream of tab separated values to a stream of values.

Static Private Summary
private

* _split(stream: *, sep: *)

Static Public

public chain(stream: Stream): * source

Converts a stream of streams of tokens to a stream of tokens.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

Return:

*

public csv(stream: Stream): * source

Converts a stream of comma separated values to a stream of values.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

Return:

*

public exhaust(stream: Stream) source

Exhausts a stream.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

public ignore(stream: Stream, toignore: Iterable): * source

Filters a stream by ignoring a given set of tokens.

Params:

NameTypeAttributeDescription
stream Stream

the stream to filter

toignore Iterable

the tokens to ignore

Return:

*

public integer(stream: Stream): * source

Converts as many tokens as possible into an integer.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

Return:

*

public map(callable: Callable, stream: Stream): * source

Applies a callable to each token of a stream.

Params:

NameTypeAttributeDescription
callable Callable

the callable to apply

stream Stream

the stream to process

Return:

*

public skip(stream: Stream, toskip: Iterable): * source

Outputs the next token of a stream that is not contained in a given toskip set.

Params:

NameTypeAttributeDescription
stream Stream
toskip Iterable

Return:

*

public split(stream: Stream, sep: Iterable): * source

Splits a stream into a stream of streams according to some set of separators.

Params:

NameTypeAttributeDescription
stream Stream
sep Iterable

Return:

*

public * toiterable(stream: Stream) source

import {toiterable} from 'aureooms-es-parse/src/tools/to.js'

Converts a stream to an iterable.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

public tsv(stream: Stream): * source

Converts a stream of tab separated values to a stream of values.

Params:

NameTypeAttributeDescription
stream Stream

the stream to read from

Return:

*

Static Private

private * _split(stream: *, sep: *) source

Params:

NameTypeAttributeDescription
stream *
sep *