@hugohammarstrom/whereversim

WhereverSim API

Stats

StarsIssuesVersionUpdatedCreatedSize
@hugohammarstrom/whereversim
001.0.53 years ago3 years agoMinified + gzip package size for @hugohammarstrom/whereversim in KB

Readme

whereversim

WhereverSim API

Installation

npm i -s @hugohammarstrom/whereversim

Example

import WhereverSim from "@hugohammarstrom/whereversim"

let API = new WhereverSim("whereversim_token")
API.authenticate()
  .then(console.log)
  .catch(console.error)

API.routes.endpoint.byId("endpoint_id")
  .then(endpoint => {
    //Do something with endpoint
  })

Skip promise rejection

Promise rejection can be skipped with the global function skipRejection()

  skipRejection(API.authenticate())
  
  skipRejection(
    API.authenticate()
      .then(console.log)
  )

WhereverSim API

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.