4.0.2 • Published 3 years ago

difi-cli v4.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

js-standard-style

difi-cli

CLI for querying the hotell.difi.no API.

Installation

$ npm install difi-cli -g

Usage

$ difi <dataset> --query=<query>

Optionally set return format. Can be csv, json, jsonp, xml or yaml (default)

$ difi <dataset> --query=<query> --format=<format>

To display help

$ difi --help

To display version

$ difi --version

Docker

To run this module as a service use the docker image.

Build

$ docker build -t difi-cli .

Run a container with arguments described in Usage. Use environment variables to specify input.

$ docker run --rm -e DATASET=<dataset> -e QUERY=<query> -e FORMAT=<format> difi-cli

This will spin up a container. Do the job. Shut it down and remove it.

Related

  • difi The API for this module

License

MIT

4.0.2

3 years ago

4.0.1

3 years ago

4.0.0

4 years ago

3.0.3

5 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.0

8 years ago

1.0.2

9 years ago

1.0.1

9 years ago