0.1.25 • Published 12 months ago

newline-async-iterator v0.1.25

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

newline-async-iterator

Line-by-line async iterator for the browser and node

Example 1: Parse json line by line

import newlineIterator from "newline-async-iterator";
import "isomorphic-fetch";
import responseIterator from "response-iterator";

const res = await fetch(
  "https://raw.githubusercontent.com/kmalakoff/newline-async-iterator/master/package.json",
);

const lines = [];
for await (const line of newlineIterator(responseIterator<Uint8Array>(res)))
  lines.push(line);
console.log(JSON.parse(lines.join("\r\n")).name); // "newline-async-iterator"

Documentation

API Docs

0.1.10

1 year ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.20

12 months ago

0.1.21

12 months ago

0.1.22

12 months ago

0.1.23

12 months ago

0.1.24

12 months ago

0.1.25

12 months ago

0.1.16

12 months ago

0.1.8

1 year ago

0.1.17

12 months ago

0.1.7

1 year ago

0.1.18

12 months ago

0.1.19

12 months ago

0.1.2

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

3 years ago

0.1.5

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago