Socket
Book a DemoInstallSign in
Socket

package-json-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-json-cli

Get the package.json of a package from the npm registry

latest
Source
npmnpm
Version
4.1.0
Version published
Maintainers
1
Created
Source

package-json-cli

Get the package.json of a package from the npm registry

Install

npm install --global package-json-cli

Usage

$ package-json --help

  Usage
    $ package-json <name> [version=latest]

  Options
    --full-metadata  Output full package metadata
    --all-versions   Output all versions
    --registry-url   Custom registry URL
    --no-deprecated  Omit deprecated versions

  Example
    $ package-json ava
    {
      "name": "ava",
      "version": "6.1.1"
      …
    }

The version can be in any format supported by the semver module. For example:

  • 1 - get the latest 1.x.x
  • 1.2 - get the latest 1.2.x
  • ^1.2.3 - get the latest 1.x.x but at least 1.2.3

Dist tags (such as latest) are also supported.

Keywords

cli-app

FAQs

Package last updated on 26 Feb 2024

Did you know?

Socket

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.

Install

Related posts