parseNdjson.js 208 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 'use strict'; function parseNdJson(input) { return input .split('\n') .map(line => line.trim()) .filter(line => line !== '') .map(line=> JSON.parse(line)); } module.exports = parseNdJson;