Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Parse iterators as ndjson and transform iterators to ndjson
Turn (async)iterable values into JSON and back again.
import ndjson from 'it-ndjson'
import all from 'it-all'
// This can also be an iterator, async iterator, generator, etc
const values = [0, 1, 2, 3, 4]
const arr = await all(ndjson.stringify(values))
console.info(arr) // '0\n', '1\n', '2\n', '3\n', '4\n'
const res = await all(ndjson.parse(arr))
console.info(res) // [0, 1, 2, 3, 4]
$ npm i it-ndjson
<script>
tagLoading this module through a script tag will make its exports available as ItNdjson
in the global namespace.
<script src="https://unpkg.com/it-ndjson/dist/index.min.js"></script>
Licensed under either of
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
FAQs
Parse iterators as ndjson and transform iterators to ndjson
The npm package it-ndjson receives a total of 5,476 weekly downloads. As such, it-ndjson popularity was classified as popular.
We found that it-ndjson demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.