Socket
Book a DemoInstallSign in
Socket

ampersand-hoodie-model

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ampersand-hoodie-model

Subclass of ampersand-model for storing to Hoodie.

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

ampersand-hoodie-model

Bundles in ampersand-collection-hoodie-mixin to provide an ampersand-model 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-model

example

var AmpersandHoodieModel = require('./ampersand-hoodie-model');

module.exports = AmpersandHoodieModel.extend({
    props: {
        id: 'any',
        firstName: ['string', true, ''],
        lastName: ['string', true, ''],
        coolnessFactor: ['number', true, 5]
    },
    session: {
        HOODIE_TYPE: ['string', true, 'person'],
        selected: ['boolean', true, false]
    },
    ...

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

ampersand

FAQs

Package last updated on 27 Dec 2014

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.