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
: A string or RegExp to filter out AsyncResource
types.options.highlightTypes
: A string or RegExp to highlight certain AsyncResource
types and their descendants.options.ignoreUnhighlighted
: Boolean to determine whether unhighlighted types should be ignored.options.padding
: Number that represents the amount of space between each depicted event.options.colors
: An array of strings that represent colors to use when highlighting.options.format
: A string that represents how the output should be formatted. Currently, the available options are 'default'
and 'svg'
(which uses ansi-to-svg
).Cnysa#enable()
Starts recording async events.
Cnysa#disable()
Stops recording async events.
Cnysa#getAsyncSnapshot()
Returns a formatted async ancestry tree.
For each AsyncResource
, a timeline 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
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.