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

backbone.deepmodel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.deepmodel

Backbone.DeepModel plugin

  • 1.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Backbone.DeepModel plugin

NPM version Build Status Codecov Status Maintainability Conventional Commits

Sauce Test Status

Super simple and lightweight Backbone.js plugin to handle nested attributes of Backbone.Model.

Please see demo.

Table of Contents

Install

via npm:

npm install backbone backbone.deepmodel

via yarn:

yarn add backbone backbone.deepmodel

or download manually:

Dependencies

Use

import DeepModel from 'backbone.deepmodel'

class Person extends DeepModel {
  defaults() {
    return {
      name: {first: '', last: ''},
      pets: []
    }
  }
}

const p = new Person()
p.set('name.first', 'Tom')

In browser:

<script src="//unpkg.com/underscore/underscore-min.js"></script>
<script src="//unpkg.com/backbone/backbone-min.js"></script>
<script src="//unpkg.com/backbone.deepmodel/dist/backbone.deepmodel.min.js"></script>

For details, see API Documentation.

Changelog

See here.

Contribute

See here.

License

MIT © ybiquitous

Keywords

FAQs

Package last updated on 21 Nov 2019

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