
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
daemon-manager
Advanced tools
This utility module was built specifically to standardize behavior across node-windows, node-mac, and node-linux.
There are two main components, the Controller and the Logger. The Controller monitors and manages the node script. The logger wraps general logging, making it easier to output to the native system and error logs.
Custom Functions
The manager.Logger singleton class allows developers to replace console methods with their own functions for:
If these methods aren't overridden, the default methods from console will be used.
Strip Console Colors
The logger also has a configuration attribute called stripColors, which will strip any console color information from the logs.
This is useful when a script should output color-coded information to the screen during development, but not in production.
Pre/Postfix Messages
The logger can optionally prefix and postfix messages with static text. For example, if the info log should have the word INFO:
before each message, it can be configured like:
var logger = new manager.Logger({
preInfo: 'INFO: ',
postInfo: ' << End Info`
});
logger.info('my message'); // <--- Outputs Info: my message << End Info
Each method has a pre and post configuration option.
Variable Replacement
The logger has a unique configuration option called findReplace. This can be used to find and replace text in a log message. For example, the following
configuration will put the date in front of every log:
var logger = new manager.Logger({
preLog: '[DATE]: ',
findReplace: {
'[DATE]': function(msg){
return (new Date()).toLocaleString();
}
}
});
logger.log('my message'); // <-- Outputs Mon Nov 25 2013 20:35:01 GMT-0600 (Central Standard Time): my message
The date in the aforementioned example would of course be the current date.
FAQs
Utility module that adds funcitonality to native node daemons.
We found that daemon-manager 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
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.