npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

chealth

v2.0.1

Published

Certify.Health CLI

Downloads

89

Readme

chealth

Certify.Health CLI

oclif Version Downloads/week License

Usage

$ npm install -g chealth
$ chealth COMMAND
running command...
$ chealth (-v|--version|version)
chealth/2.0.1 linux-x64 node-v16.4.1
$ chealth --help [COMMAND]
USAGE
  $ chealth COMMAND
...

Commands

chealth

Local Web GUI of cli

USAGE
  $ chealth

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth gui

See code: src/commands/index.ts

chealth batch:download:bookings

Downloads Bookings

USAGE
  $ chealth batch:download:bookings

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -d, --dates=dates                    Dates
  -e, --email=email                    Email
  -f, --format=csv|json|jsonl          Output Format
  -h, --help                           Display help
  -o, --output=output                  Output CSV
  -p, --phone=phone                    Phone
  -r, --requestId=requestId            Request Id
  -s, --silent                         Silent mode, with no information messages
  --after=after                        After (YYYY-MM-DD)
  --before=before                      Before (YYYY-MM-DD)
  --externalId=externalId              ExternalId
  --limit=limit                        Maximum number of items to fetch. Used in paging.
  --output-delimiter=output-delimiter  [default: ,] Output delimiter
  --serviceId=serviceId                Service Id
  --skip=skip                          Number of elements to skip before fetch. Used in paging.
  --sortOn=sortOn                      Sort field of items. Used in paging.
  --sortOrder=ASC|DESC                 Sort order/direction

DESCRIPTION
  Note: Either Dates or After and Before parameters are required.

See code: src/commands/batch/download/bookings.ts

chealth batch:download:requests

Downloads requests

USAGE
  $ chealth batch:download:requests

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -d, --dates=dates                    Dates
  -f, --format=csv|json|jsonl          Output Format
  -h, --help                           Display help
  -o, --output=output                  Output CSV
  -s, --silent                         Silent mode, with no information messages
  -t, --testType=testType              Test Type Code
  --after=after                        After (YYYY-MM-DD)
  --before=before                      Before (YYYY-MM-DD)
  --[no-]demo                          Filter is demo/no-demo
  --limit=limit                        Maximum number of items to fetch. Used in paging.
  --output-delimiter=output-delimiter  [default: ,] Output delimiter
  --skip=skip                          Number of elements to skip before fetch. Used in paging.
  --sortOn=sortOn                      Sort field of items. Used in paging.
  --sortOrder=ASC|DESC                 Sort order/direction

DESCRIPTION
  Note: Either Dates or After and Before parameters are required.

See code: src/commands/batch/download/requests.ts

chealth batch:upload:all-in-one

Uploads Simple Test Results (externalId, final).

USAGE
  $ chealth batch:upload:all-in-one

OPTIONS
  -c, --configFolder=configFolder                                 Config files folder (Only user if you need portable
                                                                  configuration file storage)

  -d, --dates=dates                                               Dates

  -h, --help                                                      Display help

  -i, --inputs=inputs                                             Input CSV

  -l, --lab-information=lab-information                           Lab information

  -l, --locale=en|es|ca|fr|sv                                     Locale of document

  -o, --output=output                                             Output CSV

  -s, --silent                                                    Silent mode, with no information messages

  -t, --testType=pcr_test|antigen_test|antibody_test|vaccination  Test type

  --after=after                                                   After (YYYY-MM-DD)

  --before=before                                                 Before (YYYY-MM-DD)

  --input-delimiter=input-delimiter                               [default: ,] Input CSV delimiter

  --logFilePrefix=logFilePrefix                                   Log file prefix for operation logs. For every
                                                                  organization, a new log file will be created by
                                                                  following format:
                                                                  <logFilePrefix>.<organizationId>.json. Example:
                                                                  logs.10000000-0000-0000-0000-000000000000.json

  --output-delimiter=output-delimiter                             [default: ,] Output delimiter

  --rename-fail=rename-fail                                       Failure rename pattern

  --rename-success=rename-success                                 Success rename pattern

  --sample                                                        Get sample input file

  --schema                                                        Get schema of input file format

  --[no-]skip                                                     Skip existing results

DESCRIPTION
  Auto downloads requests in given list of dates and for testType then auto-assigne locationId and profile and finally 
  uploads full result files.
     Note: Either Dates or After and Before parameters are required.

EXAMPLES
  chealth batch:upload:results-simple -i ./pcr_short_result1.csv ./pcr_short_result2.csv -o ./results.summary.csv -l en 
  -t pcr_test -d 2021-08-21 2021-08-22 2021-08-23 --lab-information "lab info test" --no-skip 
  --logFilePath=./logs/results.summary.logs
  chealth batch:upload:results-simple -i ./pcr_short_result1.csv ./pcr_short_result2.csv -o ./results.summary.csv -l en 
  -t pcr_test --after 2021-08-01 --before 2021-09-01 --lab-information "lab info test" --no-skip 
  --logFilePath=./logs/results.summary.logs

See code: src/commands/batch/upload/all-in-one.ts

chealth batch:upload:results

Uploads Results

USAGE
  $ chealth batch:upload:results

OPTIONS
  -c, --configFolder=configFolder                                 Config files folder (Only user if you need portable
                                                                  configuration file storage)

  -h, --help                                                      Display help

  -i, --inputs=inputs                                             Input CSV

  -l, --locale=en|es|ca|fr|sv                                     Locale of document

  -o, --output=output                                             Output CSV

  -s, --silent                                                    Silent mode, with no information messages

  -t, --testType=pcr_test|antigen_test|antibody_test|vaccination  Test type

  --input-delimiter=input-delimiter                               [default: ,] Input CSV delimiter

  --logFilePrefix=logFilePrefix                                   Log file prefix for operation logs. For every
                                                                  organization, a new log file will be created by
                                                                  following format:
                                                                  <logFilePrefix>.<organizationId>.json. Example:
                                                                  logs.10000000-0000-0000-0000-000000000000.json

  --output-delimiter=output-delimiter                             [default: ,] Output delimiter

  --rename-fail=rename-fail                                       Failure rename pattern

  --rename-success=rename-success                                 Success rename pattern

  --sample                                                        Get sample input file

  --schema                                                        Get schema of input file format

  --[no-]skip                                                     Skip existing results

See code: src/commands/batch/upload/results.ts

chealth config:clear

Clear config values

USAGE
  $ chealth config:clear

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth config:clear

See code: src/commands/config/clear.ts

chealth config:get

Get config value

USAGE
  $ chealth config:get

OPTIONS
  -c, --configFolder=configFolder                                                         Config files folder (Only user
                                                                                          if you need portable
                                                                                          configuration file storage)

  -f, --field=apiUrl|locale|keyPath|sessionLogLevel|enableCache|delimiter|labInformation  Field

  -h, --help                                                                              Display help

  -s, --silent                                                                            Silent mode, with no
                                                                                          information messages

EXAMPLE
  $ chealth config:get -f=locale

See code: src/commands/config/get.ts

chealth config:get-folder

Get config folder

USAGE
  $ chealth config:get-folder

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth config:get-folder -c=./config

See code: src/commands/config/get-folder.ts

chealth config:list

List config values

USAGE
  $ chealth config:list

OPTIONS
  -c, --configFolder=configFolder                Config files folder (Only user if you need portable configuration file
                                                 storage)

  -h, --help                                     Display help

  -o, --format=csv|json|jsonl|table|table-pivot  Output Format

  -s, --silent                                   Silent mode, with no information messages

EXAMPLE
  $ chealth config:list

See code: src/commands/config/list.ts

chealth config:remove

Set config value

USAGE
  $ chealth config:remove

OPTIONS
  -c, --configFolder=configFolder                                                         Config files folder (Only user
                                                                                          if you need portable
                                                                                          configuration file storage)

  -f, --field=apiUrl|locale|keyPath|sessionLogLevel|enableCache|delimiter|labInformation  Field

  -h, --help                                                                              Display help

  -o, --format=csv|json|jsonl|table|table-pivot                                           Output Format

  -s, --silent                                                                            Silent mode, with no
                                                                                          information messages

  -v, --value=value                                                                       Value

EXAMPLE
  $ chealth config:remove -f=locale

See code: src/commands/config/remove.ts

chealth config:set

Set config value

USAGE
  $ chealth config:set

OPTIONS
  -c, --configFolder=configFolder                                                         Config files folder (Only user
                                                                                          if you need portable
                                                                                          configuration file storage)

  -f, --field=apiUrl|locale|keyPath|sessionLogLevel|enableCache|delimiter|labInformation  Field

  -h, --help                                                                              Display help

  -s, --silent                                                                            Silent mode, with no
                                                                                          information messages

  -v, --value=value                                                                       Value

EXAMPLE
  $ chealth config:set -f=locale -v=sv

See code: src/commands/config/set.ts

chealth download:bookings

List Requests from Certify.Health API

USAGE
  $ chealth download:bookings

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -d, --dates=dates                    Dates
  -e, --email=email                    Email
  -f, --format=csv|json|jsonl          Output Format
  -h, --help                           Display help
  -o, --output=output                  Output CSV
  -p, --phone=phone                    Phone
  -r, --requestId=requestId            Request Id
  -s, --silent                         Silent mode, with no information messages
  --after=after                        After (YYYY-MM-DD)
  --before=before                      Before (YYYY-MM-DD)
  --externalId=externalId              ExternalId
  --limit=limit                        Maximum number of items to fetch. Used in paging.
  --output-delimiter=output-delimiter  [default: ,] Output delimiter
  --serviceId=serviceId                Service Id
  --skip=skip                          Number of elements to skip before fetch. Used in paging.
  --sortOn=sortOn                      Sort field of items. Used in paging.
  --sortOrder=ASC|DESC                 Sort order/direction

EXAMPLE
  $ chealth download:requests -d=2021-06-18 -l=12276320-bbc6-11eb-b87e-7f7111c1cefa

    Note: Only requests with no result will be listed by default.
          If you like to have all, you can user -a flag.

See code: src/commands/download/bookings.ts

chealth download:requests

Download Requests from Certify.Health API

USAGE
  $ chealth download:requests

OPTIONS
  -a, --all                        Show all requests including already having results
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -d, --date=date                  Date (YYYY-MM-DD)
  -f, --format=csv|json|jsonl      Output Format
  -h, --help                       Display help
  -l, --locationId=locationId      Location Id
  -s, --silent                     Silent mode, with no information messages
  -t, --testTypeId=testTypeId      Test Type Id
  --after=after                    After (YYYY-MM-DD)
  --before=before                  Before (YYYY-MM-DD)
  --[no-]demo                      Filter is demo/no-demo
  --limit=limit                    Maximum number of items to fetch. Used in paging.
  --skip=skip                      Number of elements to skip before fetch. Used in paging.
  --sortOn=sortOn                  Sort field of items. Used in paging.
  --sortOrder=ASC|DESC             Sort order/direction
  --testType=testType              Test Type Code

EXAMPLE
  $ chealth download:requests -d=2021-06-18 -l=12276320-bbc6-11eb-b87e-7f7111c1cefa

    Note: Only requests with no result will be listed by default.
          If you like to have all, you can user -a flag.

See code: src/commands/download/requests.ts

chealth get

Get Data from Certify.Health API

USAGE
  $ chealth get

OPTIONS
  -c, --configFolder=configFolder                              Config files folder (Only user if you need portable
                                                               configuration file storage)

  -e, --entity=organization|location|service|product|testType  Entity

  -h, --help                                                   Display help

  -i, --id=id                                                  id

  -o, --format=csv|json|table                                  Output Format

  -s, --silent                                                 Silent mode, with no information messages

EXAMPLE
  $ chealth get -e=service

See code: src/commands/get.ts

chealth gui

Local Web GUI of cli

USAGE
  $ chealth gui

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth gui

See code: src/commands/gui.ts

chealth help [COMMAND]

display help for chealth

USAGE
  $ chealth help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

chealth list

List Data from Certify.Health API

USAGE
  $ chealth list

OPTIONS
  -c, --configFolder=configFolder                              Config files folder (Only user if you need portable
                                                               configuration file storage)

  -e, --entity=organization|location|service|product|testType  Entity

  -f, --format=csv|json|jsonl|table|table-pivot                Output Format

  -h, --help                                                   Display help

  -s, --silent                                                 Silent mode, with no information messages

EXAMPLE
  $ chealth list -e=service

See code: src/commands/list/index.ts

chealth login

Login to Certify.Health

USAGE
  $ chealth login

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -h, --help                           Display help
  -o, --organizationId=organizationId  Organization Id
  -p, --password=password              Certify.Health Password
  -s, --silent                         Silent mode, with no information messages
  -u, --username=username              Certify.Health Username

EXAMPLE
  $ chealth login -u=user123 -p=p123

See code: src/commands/login.ts

chealth logout

Logout from Certify.Health API

USAGE
  $ chealth logout

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth logout

See code: src/commands/logout.ts

chealth profiles:add

Adds a new profile

USAGE
  $ chealth profiles:add

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -k, --keyPath=keyPath            Key path
  -n, --profileName=profileName    Profile Name
  -p, --password=password          Password
  -s, --silent                     Silent mode, with no information messages
  -u, --username=username          Username
  --keyPassphrase=keyPassphrase    Key passphrase

See code: src/commands/profiles/add.ts

chealth profiles:clear

Removes all profiles

USAGE
  $ chealth profiles:clear

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

See code: src/commands/profiles/clear.ts

chealth profiles:list

Lists profiles

USAGE
  $ chealth profiles:list

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

See code: src/commands/profiles/list.ts

chealth profiles:refresh

Refreshes profiles. Caution: logs out current session

USAGE
  $ chealth profiles:refresh

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

See code: src/commands/profiles/refresh.ts

chealth profiles:remove

Removes a profile

USAGE
  $ chealth profiles:remove

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -h, --help                           Display help
  -o, --organizationId=organizationId  OrganizationId
  -s, --silent                         Silent mode, with no information messages

See code: src/commands/profiles/remove.ts

chealth upload:bookings

Upload Bookings to Certify.Health API

USAGE
  $ chealth upload:bookings

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -f, --filePath=filePath          File Path
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages
  --format=csv|json                Input Format
  --sample                         Get sample input file
  --schema                         Get schema of input file format

EXAMPLE
  $ chealth upload:booking -f=./bookings.json
  
     or you can also send content by using pipe from standard input stream
     $ cat ./bookings.json | chealth upload:booking

     also you can get sample input file by using following command
     $ chealth upload:booking --sample

     Note1: flags:4 should be set for EU DCC requested bookings
     Note2: You can export your private key under settings/keys from https://portal.certify.health

See code: src/commands/upload/bookings.ts

chealth upload:results

Upload Results to Certify.Health

USAGE
  $ chealth upload:results

OPTIONS
  -c, --configFolder=configFolder                                 Config files folder (Only user if you need portable
                                                                  configuration file storage)

  -d, --dryRun                                                    Execute all actions except upload (parse, generate
                                                                  json, encrypt)

  -f, --filePath=filePath                                         File to encrypt

  -h, --help                                                      Display help

  -k, --keyPath=keyPath                                           Path to private key file to encrypt certificates

  -l, --locale=en|es|ca|fr|sv                                     Locale of document

  -p, --keyPassphrase=keyPassphrase                               Passphrase for private key

  -s, --silent                                                    Silent mode, with no information messages

  -s, --skipExistingResults                                       Skip existing results

  -t, --testType=pcr_test|antigen_test|antibody_test|vaccination  Test type

  --logFilePath=logFilePath                                       Log file to operation logs

  --sample                                                        Get sample input file

  --schema                                                        Get schema of input file format

EXAMPLE

         $ chealth upload:results -l=en -t=pct_test -f=result1.csv -k=myprivatekey.asc -p=k12345
         $ chealth upload:results -sample -t=pct_test

See code: src/commands/upload/results.ts

chealth utils:compare-results

Compares two CSV files

USAGE
  $ chealth utils:compare-results

OPTIONS
  -c, --configFolder=configFolder                Config files folder (Only user if you need portable configuration file
                                                 storage)

  -h, --help                                     Display help

  -l, --left=left                                Left CSV

  -m, --mode=(left|right|left-right|right-left)  Comparison mode

  -o, --output=output                            Output CSV

  -r, --right=right                              Right CSV

  -s, --silent                                   Silent mode, with no information messages

  --left-delimiter=left-delimiter                [default: ,] Left delimiter

  --output-delimiter=output-delimiter            [default: ,] Output delimiter

  --right-delimiter=right-delimiter              [default: ,] Right delimiter

  --sample                                       Get sample input file

  --schema                                       Get schema of input file format

DESCRIPTION
  Supported modes: left, right, left-right, right-left
     * left: reports lines that only exist in left file
     * right: reports lines that only exist in right file
     * left-right: reports lines of left file that also exist in right file
     * right-left: reports lines of right file that also exist in left file

See code: src/commands/utils/compare-results.ts

chealth utils:find-unique-results

Filters unique rows by externalId

USAGE
  $ chealth utils:find-unique-results

OPTIONS
  -c, --configFolder=configFolder      Config files folder (Only user if you need portable configuration file storage)
  -h, --help                           Display help
  -i, --inputs=inputs                  CSV to read
  -o, --output=output                  CSV to write
  -s, --silent                         Silent mode, with no information messages
  --input-delimiter=input-delimiter    [default: ,] Input CSV delimiter
  --output-delimiter=output-delimiter  [default: ,] Output delimiter
  --sample                             Get sample input file
  --schema                             Get schema of input file format

See code: src/commands/utils/find-unique-results.ts

chealth utils:process-results

Processes Results

USAGE
  $ chealth utils:process-results

OPTIONS
  -c, --configFolder=configFolder        Config files folder (Only user if you need portable configuration file storage)
  -h, --help                             Display help
  -i, --input=input                      Input CSV
  -l, --lab-information=lab-information  Lab information
  -o, --output=output                    Output CSV
  -s, --silent                           Silent mode, with no information messages
  --file-delimiter=file-delimiter        [default: ,] File CSV delimiter
  --input-delimiter=input-delimiter      [default: ,] Input CSV delimiter
  --output-delimiter=output-delimiter    [default: ,] Output delimiter

DESCRIPTION
  Converts simple result files to full result files ready to upload

See code: src/commands/utils/process-results.ts

chealth whoami

Get Session Account from Certify.Health API

USAGE
  $ chealth whoami

OPTIONS
  -c, --configFolder=configFolder  Config files folder (Only user if you need portable configuration file storage)
  -h, --help                       Display help
  -s, --silent                     Silent mode, with no information messages

EXAMPLE
  $ chealth whoami

See code: src/commands/whoami.ts