var client = require('scratch-project-client')({
    username: 'foo',
    password: 'bar'
});client.getProject('[someProjectId]', function (err, project) {
    // do something
});var blob = { ... };
client.setProject(blob, function (err, body) {
    // do something
});
Alternative for the setup ... more a matter of taste than anything.