@jstb/package-json-reader
v1.0.0
Published
Read Package JSON at Project Root Level in json format and extract configurations
Downloads
2
Maintainers
Readme
@jstb/package-json-reader
Utility to read packageJSON in project root level.
Installation
npm install --save-dev @jstb/package-json-reader
Usage
In your code
import packageJSONConfig from "@jstb/package-json-reader";
const scripts = packageJSONConfig("scripts");
console.log(scripts);
// prints
// {
// "dev": "next dev",
// "build": "next build",
// "start": "next start",
// "lint": "next lint",
// "generate":"catalyst"
// }