1.1.0 • Published 3 years ago

pkgv v1.1.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

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>;
  • @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

MIT