$ gnpm install @bconnorwhite/module
Read your module's package.json without importing it.
Why not just import your package.json? Importing your package.json can break your project's structure when using TypeScript if package.json is outside of your source folder.
yarn add @bconnorwhite/module
npm install @bconnorwhite/module
import {
PackageJSON,
getPackageJSON,
getPackageJSONSync,
getVersion,
getVersionSync
} from "@bconnorwhite/module";
function getPackageJSON(dirname: string): Promise<PackageJSON | undefined>;
function getPackageJSONSync(dirname: string): PackageJSON | undefined;
function getVersion(dirname: string): Promise<string | undefined>;
function getVersionSync(dirname: string): string | undefined;
Copyright 2013 - present © cnpmjs.org | Home |