Code Monkey home page Code Monkey logo

lottery-visitors's Introduction

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

lottery-visitors's People

Contributors

yagamuu avatar

Watchers

 avatar Keiichiro Amemiya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.