ndjson library
Ndjson support for Dart.
Classes
- NdjsonLine
- Represents a ndjson line. Following the ndjson spec.
Extensions
-
ParseNdJsonBytes
on Stream<
List< ?int> > -
ParseNdJsonString
on Stream<
String> ?
Constants
- kDefaultIgnoreEmptyLines → const bool
Functions
-
parseNdjson(
{Stream< List< ? byteStream, Stream<int> >String> ? stream, bool ignoreEmptyLines = kDefaultIgnoreEmptyLines}) → Stream<NdjsonLine> -
Parse a given ndjson
stream
using message-framing, supportsbyteStream
. -
parseNdjsonWithConverter<
T> ({Stream< List< ? byteStream, Stream<int> >String> ? stream, T converter(NdjsonLine)?, T whenMap(Map<String, dynamic> )?, T whenAny(dynamic)?, T whenList(List)?, T whenInt(int)?, T whenDouble(double)?, T whenNum(num)?, T whenString(String)?, T whenBool(bool)?, T whenNull()?, T whenEmptyLine()?, bool? ignoreEmptyLines}) → Stream<T> -
Parse a given ndjson
stream
using message-framing, supportsbyteStream
.