Skip to content

SnowMarble/dimipay-total-sales-amount-spreadsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dimipay total sales amount spreadsheet

install

yarn install

cli

yarn cli

cli usage

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


example

yarn cli month -m 6 -f --skip-sero
yarn cli all -f

API

import Generator

import Generate from '.';
const generator = new Generator();

generateByMonth

generator.generateByMonth({
  year?: number;
  month?: number;
  output?: string;
  separator?: boolean;
  skipZero?: boolean;
  force?: boolean;
})

generateAll

generator.generateByMonth({
  output?: string;
  separator?: boolean;
  skipZero?: boolean;
  force?: boolean;
})

result

날짜 판매 금액
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

About

dimipay total sales amount spreadsheet generator

Resources

License

Stars

Watchers

Forks