New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pixelygroup/json-splitter

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pixelygroup/json-splitter

Splits json file based on size limit

  • 1.3.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

json-splitter

This small tool splits JSON array file to smaller files (<1MB)

screenshot

Usage: json-split -f <file> -s <size> -o <output>

Options:
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
  -f, --file     Path to JSON file.                          [string] [required]
  -s, --size     Size in Kb (Default: 1000Kb)                           [number]
  -n, --name     Preferred output name (Default: Same as file)          [string]

How to run without installation

Run using npx and pass necessary parameters. The script will create an export folder with the slices in the same place as your imported json.

npx @pixelygroup/json-splitter --size 2000 --file ./path-to-file/the-file.json

How to install globally from Github

  1. Download the repository.
  2. Enter the directory and run
npm install -g .

How to install globally from NPM

In your terminal run command:

npm install -g @pixelygroup/json-splitter

How to uninstall

npm uninstall -g @pixelygroup/json-splitter

Do you enjoy this package? Help us keep it maintained!

Buy us a coffee or become a sponsor

Keywords

FAQs

Package last updated on 18 May 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

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