c0d3

2.3.4 • Public • Published


c0d3.com

A command line tool for c0d3.com challenge submissions.

Installation | Login | Submit | Logout | Contributing | License

Installation

  $ npm install --global c0d3

Login

  $ c0d3 login | l

Submit

  $ c0d3 submit | s

Logout

  $ c0d3 logout

Version

  $ c0d3 --version | -V

Help Menu

  $ c0d3 help

Contributing

CLI options:

  • c0d3 submit:

    • --url "http://YOUR_DEV_SERVER" To point to another graphQL endpoint
    • --debug | -d To use a test account token instead of you personnal account
  • c0d3 login:

    • --url "http://YOUR_DEV_SERVER" To point to another graphQL endpoint

Paradigme:

  • Error handeling: For a sweet user experience do not throw raw error instead throw a comprehensible message.
  try {
    // ...code
  } catch {
    throw new Error(MY_USER_FRIENDLY_MESSAGE)
  }

Publishing

  1. Update package.json version.
  2. run npm run build
  3. Publish! npm publish

Must be done in the order above (specifically, build then publish) because build produces a package.json inside the dist folder, which is used for upgrade checks

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i c0d3

Homepage

c0d3.com

Weekly Downloads

9

Version

2.3.4

License

MIT

Unpacked Size

118 kB

Total Files

53

Last publish

Collaborators

  • songz
  • wolfy64
  • michaelbayday
  • hwong0305
  • flacial
  • kondanna