Skip to content
/ getpkg Public

📦 The fastest way to get the root-level package.json as an object

License

Notifications You must be signed in to change notification settings

nof1000/getpkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

📦 The fastest way to get the root-level package.json as an object

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages