3.1.3 • Published 10 years ago

plug-n-play v3.1.3

Weekly downloads
2
License
BSD
Repository
github
Last release
10 years ago

plug-n-play

usage

var plugins = require('plug-n-play').configure(['Set']);
plugins.load(require('/path/to/set/plugin'));
plugins.load({
  type: 'MySweetPlugin'
  deps: ['Set']
  func: function(set) {
    return {
      count: function () {
        return set().length;
      }
    }
  };
});

var define = plugins.get('DefinePlugin');
define('Set', function() {
  return 4;
});

var mySweetPlugin = plugins.get('MySweetPlugin');
mySweetPlugin.count();
3.1.3

10 years ago

3.1.2

10 years ago

3.1.1

10 years ago

3.1.0

10 years ago

3.0.0

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago