An open API service indexing awesome lists of open source software.

https://github.com/nof1000/getpkg

📦 The fastest way to get the root-level package.json as an object
https://github.com/nof1000/getpkg

fs javascript json nodejs package path system

Last synced: 5 months ago
JSON representation

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

Awesome Lists containing this project

README

          

## getpkg
> Just returns the root-level package.json as an object

## Install
npm:
```
$ npm install getpkg --save
```

yarn:
```
$ yarn add getpkg
```

## Example
```js
const getpkg = require('getpkg');
console.log(getpkg()); /* >>
{
name: "the-lost-package",
version: "6.18.0",
description: "4, 8, 15, 16, 23, 42",
...
}
*/
```

## LICENSE
[MIT](./LICENSE "The MIT License")