getpkg
v1.0.1
Published
The fastest way to get the root-level package.json as an object
Downloads
1
Maintainers
Readme
getpkg
Just returns the root-level package.json as an object
Install
npm:
$ npm install getpkg --save
yarn:
$ yarn add getpkg
Example
const getpkg = require('getpkg');
console.log(getpkg()); /* >>
{
name: "the-lost-package",
version: "6.18.0",
description: "4, 8, 15, 16, 23, 42",
...
}
*/