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

dang

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dang

Data driven events, expression evaluation and more.

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Code Climate Test Coverage

Dang

Data driven events, expression evaluation and more.

Install

> npm install dang --save

Usage

var store = new Dang();

store.add({ name: 'm', value: 1 });
store.add({ name: 'c', value: 299792458 });
store.add('E', undefined, 'm*c*c');

store.get('E').on 'change:value', ->
    console.log 'E=mc2 is ', store.get('E').value()

API

Dang Store
dang.add(name, value, expression)

Add data instance to a Dang Store.

dang.get(name)

Get data instance by name from a Dang Store.

Dang Data
data.set(property, value)

Change a property, you can change everything but the value like this. (e.g.: expression, name)

data.get(property)

Get the value of a property.

data.evaluate()

Evaluate a Dang Data's expression.

How to develop

> npm install
> grunt

How to build (before publishing)

> npm install
> grunt build

FAQs

Package last updated on 27 Oct 2015

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