Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
cnysa
(unpronouncible) is a module that allows you to see information about what the async_hooks
module is doing under the covers.
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.typeFilter
: String or RegExp to use as a filter for AsyncResource
types.Cnysa#enable()
Starts emitting output.
Cnysa#disable()
Stops emitting output.
For each init
, before
, promiseResolve
, and destroy
event, a line will be printed.
Each of those lines start with a symbol:
+
Init*
Before-
Destroy:
Promise FulfillmentThe number that follows is the current time in seconds, mod 1000. This number might be useful in distinguishing "clusters" of async events.
A string after represents the async resource type.
The async resource's execution ID follows. For init
events, if the trigger ID is different than the current execution ID, it is displayed as well.
before
-after
pairs are visualized as indents.
node --require cnysa/register -e "fs.readFile('package.json', (err, contents) => { console.log('done reading') })"
(sleep 2 && curl localhost:8080) & node --require cnysa/register -e "http.createServer((req, res) => res.send('hi')).listen(8080)"
https://gist.github.com/kjin/a499bfcb7c5e12a80f8c6ad66a30b740
FAQs
A tool for understanding async-hooks
The npm package cnysa receives a total of 0 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.