getpkg
Just returns the root-level package.json as an object
Install
npm:
$ npm install getpkg --save
yarn:
$ yarn add getpkg
Example
const getpkg = ;console; /* >> { name: "the-lost-package", version: "6.18.0", description: "4, 8, 15, 16, 23, 42", ... }*/