🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

collate-json-cli

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry
c

collate-json-cli

CLI to collate the contents of several JSON files and write an array to a single file.

0.1.1
unpublished
latest
64

Supply Chain Security

100

Vulnerability

76

Quality

76

Maintenance

100

License

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Issues
0

collate-json-cli

CLI to collate the contents of several JSON files and write an array to a single file.

Usage

$ npx collate-json cli data/*.json result.json

For each source file, if the root is an object, that's added to the result array. If the root is itself an array, its items are added to the result array.

Example

Sources:

{
  "name": "Tom"
}
[
  {
    "name": "Dick"
  },
  {
    "name": "Harry"
  }
]

Result:

[
  {
    "name": "Tom"
  },
  {
    "name": "Dick"
  },
  {
    "name": "Harry"
  }
]

FAQs

Package last updated on 22 Dec 2020

Did you know?

Socket

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.

Install

Related posts