0.0.5 • Published 6 years ago

ps_promise v0.0.5

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

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);
    }
  )
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

7 years ago