getpkg

1.0.1 • Public • Published

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",
        ...
    }
*/

LICENSE

MIT

Package Sidebar

Install

npm i getpkg

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • nof1000