Socket
Socket
Sign inDemoInstall

binding

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    binding

Still under development. It is not yet mature. Thank you for your understanding!


Version published
Maintainers
1
Install size
70.8 kB
Created

Readme

Source

Build Status Coverage Status

Overview :

Binding system which includes any valid binding :

  • Bind value to variable.

  • Bind value to namespace. (DONE)

  • Bind model to view and view to model (MVVM)

  • And many ideas

Install

npm install binding --save;

or using CDN :

<script src="https://cdn.rawgit.com/abdennour/binding/master/cdn/binding-latest.min.js"></script>

Use Cases :

  1. Bind namespace to value :
import binding from 'binding';

const person = binding('name.firstname', 'Ahmed');
// console.log(person.name.firstname) // Ahmed
  1. Bind namespace to value and attach the object :
binding('person.name.firstname', 'Ahmed', window);
// console.log(person.name.firstname) // Ahmed

License:

MIT .

Keywords

FAQs

Last updated on 08 Jun 2017

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