Skip to content

ArtBears/ps_promise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A wrapper around the Paperspace node library using promises

Resources

Stars

Watchers

Forks

Packages

No packages published