Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cnysa
(unpronouncible) is a module that allows you to see information about what the async_hooks
module is doing under the covers.
Note: This module currently uses the colors
module.
Pre-require cynsa/register
in your application:
node --require cynsa/register app.js
If cnysa.json
exists in the current working directory, it will be used as the configuration passed to the Cnysa
constructor as described below.
const { Cnysa } = require('cnysa');
new Cnysa(options)
All options are optional.
options.width
: Maximum number of characters to print on a single line before wrapping. Defaults to the current terminal width.options.ignoreTypes
: String or RegExp to filter out AsyncResource
types.options.highlightTypes
: String or RegExp to highlight certain AsyncResource
types and their descendants.Cnysa#enable()
Starts recording async events and registers a process exit hook.
Cnysa#disable()
Stops recording async events and unregisters the process exit hook.
For each AsyncResource
, a time line will be printed, with a number of colored symbols:
*
represents the async resource creation.*
represents its destruction.{...}
represent running in an async scope.-
indicates the lifetime of the resource creation, and is bookended by *
symbols.node --require cnysa/register -e "fs.readFile('package.json', (err, contents) => { console.log('done reading') })"
FAQs
A tool for understanding async-hooks
The npm package cnysa receives a total of 19 weekly downloads. As such, cnysa popularity was classified as not popular.
We found that cnysa 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.