Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

available

> 包管理
Open source

Scan npm for available package names

100 stars0 likes4 views
WebsiteGitHub

About

Scan npm for available package names

available travis npm downloads javascript style guide

Scan npm for available package names

install

bash
npm install available -g

usage

cli

Get available names from the npm registry:

bash
$ available
your
was
our
...

Full options list:

Usage:
    available [optional-name] 

    Scan npm for available package names.

Examples:

    Print lots of possible names:
        available
        available --offline

    Check for a certain name:
        available my-cool-name
        available my-cool-name --related
        available my-cool-name --offline

Flags:
    -r, --related    Search for related module names (Uses thesaurus)
    -o, --offline    Force offline mode (Does not verify names are actually available)
    -v, --version    Show current version
    -h, --help       Show usage information

api

available.getNames(opts, next)

Get available package names from npm.

If opts.online is true, verify that the names are actually available. Otherwise, a local package name database is used, which may be slightly out-of-date.

next(err, name) is called each time an available package is found. This allows for "streaming" the possible names from the registry. If err is an Error, then there was a problem and next will not be called again. name is the available package name.

available.checkName(name, opts, next)

Check if a specific name is available on npm.

If opts.online is true, verify that the names are actually available. Otherwise, a local package name database is used, which may be slightly out-of-date.

If opts.related is true, then this will search for related module names using a thesaurus.

next(err, name) is called each time an available package is found. This allows for "streaming" the possible names from the registry. If err is an Error, then there was a problem and next will not be called again. name is the available package name.

license

MIT. Copyright (c) Feross Aboukhadijeh.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptavailablejavascriptnamenodejs

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image