This simple Node.js Script is used for generating a lot of smaller JSON files (approx. 250 bytes) from a singleton bigger JSON Array[] file. Indeed for pagination.
1.0.0
- Checkout this repository
- Open the CLI You like.
- Navigate to the directory contains the checked out repository.
- Type:
npm install
to install dependency. - Finally...
$ node index.js [Options] <Full path to the Source JSON Array File> <Output Directory>
Outputs can be found under the output directory you defined
-h, --help output usage information
-V, --version output the version number
-e, --entries <n> How Many Entries in a single file?
-p, --pretty Pretty Formatted JSON in the outputs
-m, --metadata Generate an metadata JSON
GPLv3