Skip to content

RTAinJapan/lottery-visitors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lottery-visitors

観覧応募の抽選をCSVを元に行うCLIツール

下準備

  1. スプレッドシートからCSVを出力する
    • 列に関しては以下の内容にする
      1. タイムスタンプ
      2. メールアドレス
      3. その他データ(ある場合のみ)
      4. 優先度1
      5. 優先度2……
  2. 出力したCSVをディレクトリ配下にdata.csvという名前で置く
    • 引数に-f "ファイル名"と指定することで別のファイル名も読み込み可能

オプション

  • -f, --fileName
    • ファイル名の指定(デフォルト:data.csv)
  • -a, --add
    • 優先度列の前に追加しているデータ列数を指定(デフォルト:0)
  • -h, --header
    • 1行目をデータ列として取り扱うか

実行

npm run start

# 引数を指定する場合
npm run start -- -a 1 -h

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published