Socket
Book a DemoInstallSign in
Socket

@nullish/joinjson

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nullish/joinjson

Node script to join a set of JSON files into a single JSON file. Each individual file is an object.

latest
Source
npmnpm
Version
1.3.3
Version published
Maintainers
1
Created
Source

JoinJSON

Receives one or mode JSON files and joins them into a single file.

Each file is captured as a Javascript object. There's no attempt to match elements in one object to those in another.

The script receives one argument, the path to a folder, and outputs a file called manifest.json to the same folder. It can be called either as a function or from the command line.

Example

File 1

{
  "file": "1",
  "contents": [
    "a",
    "b"
  ]
}

File 2

{
  "file": "2",
  "contents": [
    "b",
    "c"
  ]
}

Output

[
  {
    "file": "1",
    "contents": [
      "a",
      "b"
    ]
  },
  {
    "file": "2",
    "contents": [
      "b",
      "c"
    ]
  }
]

Keywords

json

FAQs

Package last updated on 04 Jul 2021

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