1.0.5 • Published 6 years ago

@hugohammarstrom/whereversim v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
6 years ago

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

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago