/
eapostnova
/
2026-1--study--simulation-modeling
Обзор
Документация
Войти
/
eapostnova
/
2026-1--study--simulation-modeling
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
3
CI/CD
Аналитика
Безопасность
master
node_modules/JSONStream/examples/all_docs.js
13 строк
459 B
Елизавета Постнова
chore(site): add changelog
06 мар 2026, 00:34
Верифицирован
06 мар 2026, 00:34
8cca814
Код
Авторство
О чём код?
var request = require('request') , JSONStream = require('JSONStream') , es = require('event-stream') var parser = JSONStream.parse(['rows', true]) //emit parts that match this path (any element of the rows array) , req = request({url: 'http://isaacs.couchone.com/registry/_all_docs'}) , logger = es.mapSync(function (data) { //create a stream that logs to stderr, console.error(data) return data }) req.pipe(parser) parser.pipe(logger)