UNPKG

npm-pkginfo-cli

Version:

Command line utility to view info about your current package

13 lines (10 loc) 434 B
import { defaults } from "../var/default_options"; import { debug } from "../util/debug"; import { debugTime } from "../util/debugTime"; const parse_options = (options) => { var pkgrc = process.env.PKGINFO_OPTIONS || "{}"; options = Object.assign({}, defaults, JSON.parse(pkgrc)); debug("Options set in environment variable:", process.env.PKGINFO_OPTIONS, "Options: ", options); return options; }; export { parse_options };