Socket
Socket
Sign inDemoInstall

observ-varhash

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

observ-varhash

An object with observable key value pairs that can be added and removed


Version published
Weekly downloads
215
decreased by-22.38%
Maintainers
1
Weekly downloads
 
Created
Source

observ-varhash build status

An object with observable key value pairs that can be added and removed

Example

An ObservVarhash is a version of observ-struct that allows adding and removing keys. Mutation of an observable element in the hash will cause the ObservVarhash to emit a new changed plain javascript object.

var ObservVarhash = require("observ-varhash")
var Observ = require("observ")

var people = ObservVarhash({jack: 'Jack'}, function create (obj, key) {
  return Observe(obj)
})

people.put('diane', 'Diane')

console.log(people())
// plain javascript object {jack: 'Jack', diane: 'Diane'}

Installation

npm install observ-varhash

Contributors

  • Nicholas Westlake

API based on observ-struct

MIT Licenced

FAQs

Package last updated on 01 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

  • 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