@jswork/next-bind

1.0.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/next-bind

Weekly Downloads

4

Version

1.0.2

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • afeiship