https://github.com/momsfriendlydevco/spreadsheet-templater-cli
CLI for @momsfriendlydevco/spreadsheet-templater
https://github.com/momsfriendlydevco/spreadsheet-templater-cli
Last synced: 10 months ago
JSON representation
CLI for @momsfriendlydevco/spreadsheet-templater
- Host: GitHub
- URL: https://github.com/momsfriendlydevco/spreadsheet-templater-cli
- Owner: MomsFriendlyDevCo
- License: mit
- Created: 2022-03-06T04:41:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-06T22:59:09.000Z (over 4 years ago)
- Last Synced: 2025-10-11T12:17:59.048Z (10 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Spreadsheet-Templater-CLI
=========================
Command line interface for [@MomsFriendlyDevCo/Spreadsheet-Templater](https://github.com/MomsFriendlyDevCo/spreadsheet-templater)
This command takes an input + output file path and allows setting of data within the spreadsheet.
```
Usage: spreadsheet-templator [arguments]
Options:
-V, --version output the version number
-d, --data [key=val] Set a data value - use multiple times if needed
(default: {})
--repeat [key=size] Create an empty data array of a given size (useful when
using faker) - can be specified multiple times
(default: {})
-i, --input [file] Specify an input XLSX file (alternative method)
-o, --output [file] Specify an output XLSX file (alternative method)
-v, --verbose Be verbose - use multiple to increase verbosity
-h, --help display help for command
Notes:
* @faker-js/faker is available as `faker` within a template
* lodash is available as `_` within a template
Examples:
# Create output.xlsx (from input.xlsx) setting `people` to an empty array of 100 items
spreadsheet-templator --repeat=people=100 input.xlsx output.xlsx
```