mk-pmb

mk-pmb/find-up-package-json-cjs

A CommonJS module to find the closest `package.json`, read it, and report its content along with paths and goodies.

JavaScript
0
0
No license

A lightweight CommonJS utility that searches upward from a given directory to locate the nearest `package.json`, reads its contents, and returns a detailed report (full path, directory, raw text, parsed JSON, ES‑module flag, resolved paths, entry‑point, etc.). It’s aimed at Node.js developers who need more than just the file location—providing both synchronous and asynchronous APIs for tooling, scripts, or libraries that need quick access to package metadata.

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of mk-pmb/find-up-package-json-cjs

Account's avatar
My favorite eslint rules.
Account's avatar
(2022 maintenance fork) Light ESLint plugin for JSON validating
Account's avatar
Additional ESLint's rules for Node.js

Support the repos that depend on this repository

Top contributors

mk-pmb's profile
mk-pmb
4 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet