Git Product home page Git Product logo

cpho's Introduction

@nfantone/cpho

Contracting Plus

Contracting Plus Home Office command line tool

Reliably upload daily E-Workers allowance to mycontractingplus.com from the comfort of your home.

# Clone repository
git clone [email protected]:nfantone/cpho.git
cd cpho

# Install dependencies
npm i --production

# Run test command
./bin/cpho.js --version
1.0.0

Alternatively, using npx:

npx https://github.com/nfantone/cpho --version
npx: installed 87 in 7.784s
1.0.0

Requirements

  • node 12+
  • npm 6+

Follow official Node.js installation instructions for your system.

Quick guide

cpho.js <command>

Commands:
  cpho.js upload  uploads e-workers allowance for all weekdays in a given month + year

Options:
      --help            Show help                                      [boolean]
      --url             Base Contracting Plus URL
                             [string] [default: "https://mycontractingplus.com"]
  -u, --username        Contracting Plus username                       [string]
  -p, --password        Contracting Plus password                       [string]
  -d, --description     Contracting Plus allowance entry description
                                              [string] [default: "Pragmars LLC"]
      --hs, --hours     Contracting Plus allowance entry hours
                                                           [number] [default: 8]
      --min, --minutes  Contracting Plus allowance entry minutes        [number]
  -m, --month           Index of month to upload allowance for (beginning with 0
                        for January to 11 for December)    [number] [default: 8]
  -y, --year            Year to upload allowance for    [number] [default: 2020]
  -t, --throttle        Number of milliseconds to wait between allowance uploads
                                                         [number] [default: 500]
  -x, --exclude         If specified, an allowance will not be uploaded for
                        these working days                 [array] [default: []]
      --version         Show version number                            [boolean]

Usage

  • Upload monthly allowance for all weekdays in current month.
./cpho.js upload -u [email protected] -p my-password

๐Ÿ’ก If not provided using -u / -p, cpho will prompt for username and password.

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.