Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

collate-json-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc