@cpr/client
v0.0.2
Published
REST API client for Cloud Progress
Downloads
4
Maintainers
Readme
cpr-js
This is the nodejs client for the Cloud Progress rest API. Cloud Progress is a hosted developer tool that provides progress bars with ETA for structured tasks.
The swagger / openapi spec for this api is hosted as a browseable redoc page and in our API repo https://github.com/cloudprogress/cpr-api. The API repo has links to clients in other languages.
Example
Check out pizza.js in this repo 🍕 for a usage example.
Target version of javascript
Intended to be used from node without a buildstep. The .eslintrc.js
should be enforcing a recent but not cutting-edge version (async/await + classes but not import).
If you have a reason to need this in the browser and can't make it work, post an issue.
Ops considerations
This throws when there's an API error. Future versions will control that behavior with a flag. Applications that need to be fault-resistant shouldn't use this version in production.
Http client timeouts are also at their defaults. This will be configurable in a future version of the library, but the current version may be subject to hangs when the backend is unavailable.