0.0.2 • Published 1 year ago

fill-territory-record-pdf v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Usage

npx fill-territory-record-pdf [CSVFILE] [FROM_TERRITORY]

Arguments

CSVFILE

  • type: String

Territory record CSV file to read and fill pdf

# Run command and read csv from home
npx fill-territory-record-pdf ~/territory-record.csv

# Run command and read csv from current dir
npx fill-territory-record-pdf my-record.csv

# Run command and read csv from your custom path
npx fill-territory-record-pdf /my/custom/path/record.csv
CSV structure

Fields

field nametyperequireddescription
territoryNumberrequiredTerritory number
publisherStringrequiredPublisher name
started_atDaterequiredStart date of record
finished_atDatenot requiredFinish date of record

Example

territorypublisherstarted_atfinished_at
1Dennis Schulist2018-10-112019-06-02
2Kurtis Weissnat2019-10-17

FROM_TERRITORY

  • type: Number

Number of territory number to consider in CSV file and fill pdf

# Run command and consider territory record from number 1
npx fill-territory-record-pdf [CSV_FILE] 1

# Run command and consider territory record from number 11
npx fill-territory-record-pdf [CSV_FILE] 11

Flags

--outDir

  • default: process.cwd() current folder of command is executed
  • type: String

Specify an output folder for filled territory record pdf

# Run command and specify downloads folder as output for pdf
npx fill-territory-record-pdf [CSV_FILE] [FROM_TERRITORY] --outDir '~/Downloads'

# Run command and specify folder as output for pdf
npx fill-territory-record-pdf [CSV_FILE] [FROM_TERRITORY] --outDir './2022-31-08'