@hugohammarstrom/whereversim

1.0.5 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

Package Sidebar

Install

npm i @hugohammarstrom/whereversim

Weekly Downloads

0

Version

1.0.5

License

ISC

Unpacked Size

339 kB

Total Files

19

Last publish

Collaborators

  • hugohammarstrom