Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
json-stream-combiner
Advanced tools
Easey way to take json objects or files and write them to a destination file.
Readme
A simple API to stream combine many json files, json objects, or array of json objects into a single output file.
npm install json-stream-combiner
If we have this input file:
[
{ "x": 1, "y": 2 },
{ "q": 1, "w": 2 }
]
We can pass that in like this:
import jsonStreamCombiner from 'jsonStreamCombiner';
jsonStreamCombiner([
'/absolute/path/to/json/input.json',
{ a: 1, b: 2 },
[ { c: 1, d: 2 }, { e: 1, d: 2 } ]
],
'/absolute/path/to/json/output.json').then(function() {
console.log('Done!');
})
and then output.json
will have this output:
[
{ "x": 1, "y": 2 },
{ "q": 1, "w": 2 },
{ "a": 1, "b": 2 },
{ "c": 1, "d": 2 },
{ "e": 1, "d": 2 }
]
FAQs
Easey way to take json objects or files and write them to a destination file.
The npm package json-stream-combiner receives a total of 217 weekly downloads. As such, json-stream-combiner popularity was classified as not popular.
We found that json-stream-combiner demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.