Socket
Socket
Sign inDemoInstall

hadron-document

Package Overview
Dependencies
4
Maintainers
33
Versions
389
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hadron-document

Hadron Document


Version published
Weekly downloads
15K
increased by3.55%
Maintainers
33
Created
Weekly downloads
 

Readme

Source

hadron-document

Hadron Document is a wrapper for javascript objects that represent documents in a database intended for use with React components. It provides element (key/value pair) level dirty tracking with the ability to add, edit, delete and revert changes to elements directly.

Installation

npm install --save hadron-document

Usage

'use strict';

const { Document } = require('hadron-document');

var object = {
  _id: 'aphex-twin',
  name: 'Aphex Twin',
  locations: ['London'],
  emails: {
    home: 'home@aphextwin.com',
    work: 'work@aphextwin.com',
  },
};

var doc = new Document(object);

Keywords

FAQs

Last updated on 09 Apr 2024

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