Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
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 6 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.