
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
callback-logger
Advanced tools
Log callback results
npm install callback-logger
Supported options:
successColor
- (default: 'green') Color for success messages. See cli-color for a list of supported colorserrorColor
- (default: 'red') Color for error messageslogFunction
- (default: console.log
) Function to call to log a message. It should be of the form function(message)
traceErrors
- (default: true
) When an error occurs, append the error stack to the messageLog a message as a success
Log a message as an error. If err
is passed and options.traceErrors
is true, the stack trace will also be logged.
Return a function which logs the result of a callback of type (err, success)
. If err
is defined, errorMessage
is used, otherwise successMessage
is used.
Underscore templating may be used on successMessage
and errorMessage
. The variables err
and res
contain the result of the callback
An optional callback can be passed which is executed after the log messages.
var logger = require('callback-logger')();
fs.writeFile('file.txt', 'contents', logger.cb('Successfully wrote file', 'Error while writing file'));
glob('*.txt', logger.cb('Found <%= res.length %> files', 'Error on glob'));
logger.success('Done something');
logger.error('Something went wrong');
FAQs
Log callback results
We found that callback-logger 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.