0.0.1 • Published 6 years ago
core.plugin.extend v0.0.1
core.plugin.extend
Allows plugins to declaratively extend the core object.
let core = require('core.skeleton');
core.plugin(
require('core.plugin.extend')
);
core.plugin({
name: 'test',
extend: {
ok(){ return '√'; }
}
});
core.ok(); // '√'
0.0.1
6 years ago