Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boodle

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boodle

Boodle ======

  • 0.0.4
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Boodle

Boodle is an experimental ES6 ODM for parse.com backends. It lets you do delightful things like yield for asynchronous tasks, directly get or set model values, and use the new ES6 class definitions.

example

co(function* () {

  // shiny new es6 class syntax
  class TestModel extends BaseModel {

    // working on making this better, but...
    get definition() {
      return {
        test: 'string'
      };
    }
  }

  // put a new model in the db
  var createdModel = yield TestModel.generate();
  var newToken = createdModel.token;

  // re-fetch from the db
  var loadedModel = yield TestModel.load(newToken);

  // we can directly set model properties:
  loadedModel.test = 'hello';
  yield loadedModel.save();

  // let's reload the model from the db for kicks
  yield loadedModel.refresh();

  // this will output 'hello'!
  console.log(loadedModel.test);

  // good bye model...
  yield loadedModel.delete();

  // this is null:
  var deletedModel = yield TestModel.load(newToken);
});

FAQs

Package last updated on 16 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc