npm.io
1.1.0 • Published 5 years agoCLI

pkgv

Licence
MIT
Version
1.1.0
Deps
2
Size
5 kB
Vulns
0
Weekly
0
Stars
1

CLI to get the version of a project's package.json.

Installation

yarn add pkgv
npm install pkgv

CLI Usage

yarn pkgv
npx pkgv

API Usage

import { getPackageVersion } from "pkgv";

const version = await getPackageVersion();

Types

import { getPackageVersion } from "pkgv";

function getPackageVersion(): Promise<string | undefined>;

Dependenciesdependencies

  • @bconnorwhite/package: A utility for reading package.json of a project, and forming paths relative to it.
  • commander-version: A wrapper for Commander that automatically sets the version based on your package.json

Dev DependenciesDavid


License license

MIT

Keywords