
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
bunyan-promise
Advanced tools
Bunyan formatted tracking of outstanding promises, progress, errors, and resolution times.
Bunyan-Promise consumes promises and outputs bunyan logs showing their progress, their resolution or rejection, and makes state dumps showing all promises that have not settled.
Bunyan-Promise can consume any type of promises, but for the sake of this example we'll use one from Kriskowal's Q Library.
var q = require('q');
var BunyanPromiseLogger = require('bunyan-promise');
var logger = new BunyanPromiseLogger({
name: 'test-logger'
});
var defer = q.defer();
logger.trace(defer.promise, 'arbitrary promise name for logging');
// sometime in the future resolve that promise
setTimeout(function () {
defer.resolve();
}, 10000);
This is pretty printed by piping the output through the bunyan cli.
node app.js | bunyan -o short
Alternatively you can use the bunyan grunt task if you're using grunt
npm install --save-dev grunt-bunyan
grunt bunyan task1 task2 ...
FAQs
Bunyan formatted tracking of outstanding promises, progress, errors, and resolution times.
The npm package bunyan-promise receives a total of 2 weekly downloads. As such, bunyan-promise popularity was classified as not popular.
We found that bunyan-promise 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.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.