ps_promise

0.0.5 • Public • Published

ps_promise

A wrapper around the Paperspace-Nodelibrary using promises

BREAKING UPDATE: Due to changes in the Paperspace-Node package newer versions will now return the body of the response instead of the entire resp object. Use resp instead of resp.body

Version 0.0.5 Update

  • Support for Jobs
  • Support for Projects

Refer to the Docs on how to use these new features: Paperspace-Node Docs

The use of this library is similar to the original. Just import ps_promise with your API key.

let ps_promise = require('ps_promise')
let ps = ps_promise(api_key)

The main difference is the use of promises instead of async callbacks.

ps.machines.create(test_machine)
  .then(
    (resp) => {
        console.log(resp);
    }
  )
  .catch(
    (err) => {
        console.log(err);
    }
  )

Readme

Keywords

none

Package Sidebar

Install

npm i ps_promise

Weekly Downloads

0

Version

0.0.5

License

ISC

Last publish

Collaborators

  • artbears