
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
minimanager
Advanced tools
MiniManager allows you to enable or disable function calling and read-only properties on an object.
var evt = new EventEmitter();
evt.on('test', function() {
console.log('test');
});
// Wrap your object in a MiniManager
var manager = new MiniManager(evt);
// Get the new 'managed' object
var instance = manager.instance;
// The managed instance is disabled by default
instance.emit('test'); // nothing
// But we can enable it with the manager
manager.enable();
// And now we can use it
instance.emit('test'); // "test"
MiniManager is available with NPM or Bower, or by cloning the repo.
# Install with NPM
npm install minimanager --save
# Install with Bower
bower install minimanager --save
# Clone the repo
git clone git://github.com/mrfishie/MiniManager.git
To use it in Node, just require the module.
var MiniManager = require('minimanager');
var manager = new MiniManager(/* ... */);
To use it with Bower, first load the Javascript file in your HTML.
<script src="bower_components/minimanager/minimanager.js"></script>
Now the class will be defined in the global scope.
var manager = new MiniManager(/* ... */);
MiniManager tests are run with Mocha, and use Chai for assertions. All tests are in the test folder.
To run all tests, use the NPM test command.
npm test
MiniManager is licensed under the MIT license. See the LICENSE file for more details.
FAQs
Enable or disable the methods and properties in an object
We found that minimanager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.