model-memory-sync

0.0.0 • Public • Published

model-memory-sync

In memory storage for node-model. Useful for testing.

Installation

npm install model-memory-sync

Example

var model = require('node-model')

var Post = model('Post')
  .attr('id')
  .attr('title')
  .attr('body')

Post.sync = require('model-memory-sync')

var post = new Post({title: "My Awesome Post", body: "Is awesome"})
post.save(function(err) {
  ...
})

Tests

npm test

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    4

Package Sidebar

Install

npm i model-memory-sync

Weekly Downloads

4

Version

0.0.0

License

MIT

Last publish

Collaborators

  • stereosteve