Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ncm-analyze-tree
Advanced tools
Readme
Get certification data for a module's dependency tree, as it is on disk.
This process is optimized by trying to get all the necessary information from
a package-lock.json
or yarn.lock
file, and a full scan of node_modules/**
is only reverted to if no lock file exists.
Print certification data for this module's dependency tree:
const analyze = require('ncm-analyze-tree')
const data = await analyze({
dir: __dirname,
token: 'accounts token',
onPkgs: pkgs => console.log(`Analyzing ${pkgs.size} modules...`)
})
for (const pkg of data) {
console.log(`${pkg.name}@${pkg.version}`)
for (const path of pkg.paths) {
console.log(` ${path.map(pkg => `${pkg.data.name}@${pkg.data.version}`).join(' > ')}`)
}
}
$ node example.js | head -n25
Analyzing 326 modules...
standard@11.0.1
eslint@4.18.2
standard@11.0.1
ajv@5.5.2
standard@11.0.1 > eslint@4.18.2
standard@11.0.1 > eslint@4.18.2 > table@4.0.2
co@4.6.0
standard@11.0.1 > eslint@4.18.2 > ajv@5.5.2
fast-deep-equal@1.1.0
standard@11.0.1 > eslint@4.18.2 > ajv@5.5.2
fast-json-stable-stringify@2.0.0
standard@11.0.1 > eslint@4.18.2 > ajv@5.5.2
json-schema-traverse@0.3.1
standard@11.0.1 > eslint@4.18.2 > ajv@5.5.2
babel-code-frame@6.26.0
standard@11.0.1 > eslint@4.18.2
chalk@1.1.3
standard@11.0.1 > eslint@4.18.2 > babel-code-frame@6.26.0
ansi-styles@2.2.1
standard@11.0.1 > eslint@4.18.2 > babel-code-frame@6.26.0 > chalk@1.1.3
escape-string-regexp@1.0.5
standard@11.0.1 > eslint@4.18.2 > babel-code-frame@6.26.0 > chalk@1.1.3
standard@11.0.1 > eslint@4.18.2 > chalk@2.4.1
The returned data is of this format:
{
name
version
score
paths[]
published
publishedAt
results {
severity
pass
name
test
value
}
vulnerabilities {
id,
title,
semver {
vulnerable
},
severity
}
}
$ npm install ncm-analyze-tree
dir
: The node project's directorytoken
: accounts tokenonPkgs
: Called with a Set
of package objects { name, version }
, once the
tree has been readfilter
: Called with every pkg
object, return false
to remove from
analysisurl
: ncm2-api
urlCopyright © NodeSource.
Licensed under the MIT open source license, see the LICENSE file for details.
FAQs
Get certification data for a module's dependency tree
The npm package ncm-analyze-tree receives a total of 2 weekly downloads. As such, ncm-analyze-tree popularity was classified as not popular.
We found that ncm-analyze-tree demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.