
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
Fetch a list of dependency names for a given npm package
Uses fetch-nice-package and nice-package under the hood.
Node 8 or greater is required because this module uses async functions.
npm i -g depnames
This module exports a single function which expects a package name and returns a promise. The resolved value is an array of package name strings:
require('depnames')('cheerio')
.then(names => console.log(names))
To fetch dev dependencies, set the dev option:
require('depnames')('cheerio', {dev: true})
.then(names => console.log(names))
If you need more flexibility, see fetch-nice-package and nice-package.
The CLI prints a newline-delimited list to standard out:
depnames budo
bole
browserify
chokidar
connect-pushstate
escape-html
...
This newline pattern plays nicely with tools like the ghub CLI.
The following command will open every dependency's repository page in a browser tab:
npm i -g ghub depnames
depnames express | ghub
Pass the --dev flag to list devDependencies:
depnames budo --dev
2d-context
babel-preset-es2015
babelify
brfs
canvas-loop
...
npm install
npm test
MIT
FAQs
Fetch a list of dependency names for a given npm package
We found that depnames 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.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.