@verdaccio/yarn-plugin-npm-ping
v0.0.2
Published
Yarn 4 plugin that adds the yarn npm ping command
Keywords
Readme
@verdaccio/yarn-plugin-npm-ping
Yarn 4 plugin that adds the yarn npm ping command to verify npm registry connectivity.
Installation
yarn dlx @verdaccio/yarn-import npm-pingOr from a local build:
yarn plugin import ./packages/plugin-npm-ping/bundles/@yarnpkg/plugin-npm-ping.jsUsage
# Ping the default registry
yarn npm ping
# Ping a specific registry
yarn npm ping --registry http://localhost:4873
# Ping the registry configured for a scope
yarn npm ping --scope my-org
# Output as JSON
yarn npm ping --jsonOptions
| Option | Description |
|---|---|
| --registry <url> | Override the registry URL to ping |
| --scope <scope> | Ping the registry configured for the given scope |
| --json | Format the output as NDJSON |
Example output
➤ YN0000: ping https://registry.npmjs.org
➤ YN0000: PONG 123 msLicense
MIT
