yarn install
yarn cli
Commands:
month [options]
Options:
-y, --year <number> target year (default: current year)
-m, --month <number> target month (default: current month)
-o, --output <string>
--no-separator separate amount with comma
-f, --force overwrite output file
--skip-zero skip zero amount
-h, --help display help for command
all [options]
Options:
-o, --output <string>
--no-separator separate amount with comma
-f, --force overwrite output file
--skip-zero skip zero amount
help [command] display help for command
yarn cli month -m 6 -f --skip-sero
yarn cli all -f
import Generator
import Generate from '.';
const generator = new Generator();
generator.generateByMonth({
year?: number;
month?: number;
output?: string;
separator?: boolean;
skipZero?: boolean;
force?: boolean;
})
generator.generateByMonth({
output?: string;
separator?: boolean;
skipZero?: boolean;
force?: boolean;
})
날짜 | 판매 금액 |
---|---|
2020-06-23 | 425,000 |
2020-06-24 | 425,000 |
2020-06-25 | 425,000 |
2020-06-26 | 425,000 |
2020-06-27 | 320,000 |