@hugohammarstrom/whereversim

WhereverSim API

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@hugohammarstrom/whereversim
001.0.54 years ago4 years agoMinified + gzip package size for @hugohammarstrom/whereversim in KB

Readme

whereversim
WhereverSim API

Installation

``` npm i -s @hugohammarstrom/whereversim ```

Example

```js import WhereverSim from "@hugohammarstrom/whereversim" let API = new WhereverSim("whereversimtoken") API.authenticate() .then(console.log) .catch(console.error) API.routes.endpoint.byId("endpointid") .then(endpoint => {
//Do something with endpoint
}) ```

Skip promise rejection

Promise rejection can be skipped with the global function ``skipRejection()`` ```js skipRejection(API.authenticate()) skipRejection(
API.authenticate()
.then(console.log)
) ``` WhereverSim API