Socket
Socket
Sign inDemoInstall

ampersand-hoodie-collection

Package Overview
Dependencies
51
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ampersand-hoodie-collection

Subclass of ampersand-collection for storing to Hoodie.


Version published
Maintainers
1
Install size
1.45 MB
Created

Readme

Source

ampersand-hoodie-collection

Bundles in ampersand-hoodie-mixin to provide an ampersand-collection that uses Hoodie for storage.


Note! This is a very early working prototype. There is not yet a unit test suite.

install

npm install ampersand-hoodie-collection

example

var AmpersandHoodieCollection = require('./ampersand-hoodie-collection');
var Person = require('./person');

module.exports = AmpersandHoodieCollection.extend({
    model: Person,
    HOODIE_TYPE: 'person'
});

usage

The only critical usage note is that implementing classes must declare a value for the HOODIE_TYPE property. In the example above, the HOODIE_TYPE property states that this model will be represented in Hoodie as a "person" type.

changelog

credits

Thanks to the Ampersand and Hoodie groups!

license

MIT

Keywords

FAQs

Last updated on 27 Dec 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc