1.0.2 • Published 3 years ago

@jswork/next-bind v1.0.2

Weekly downloads
148
License
MIT
Repository
-
Last release
3 years ago

next-bind

Bind all for next.

version license size download

installation

npm install -S @jswork/next-bind

usage

import '@jswork/next-bind';

const obj = {
  id: 'bold',
  type: 'plugin',
  events: {
    name: function () {
      return [this.id, this.type].join('-');
    }
  },
  commands: {
    is: function (inMode) {
      return this.id === inMode;
    },
    get: function () {
      return this.type;
    }
  }
};

nx.bind(obj, obj.commands, obj.events);

license

Code released under the MIT license.