Skip to content

afeiship/read-pkg-json

Repository files navigation

read-pkg-json

Read package.json file.

version license size download

installation

npm install @jswork/read-pkg-json

usage

import readPkgJson from '@jswork/read-pkg-json';

// 1. current dir
const pkg = readPkgJson();
// 2. specify dir
const pkg = readPkgJson('path/to/your/project');

types

/// <reference types="@jswork/read-pkg-json/global.d.ts" />

license

Code released under the MIT license.