get-packages-recursive

Get package.json recursive of a directory

Usage no npm install needed!

<script type="module">
  import getPackagesRecursive from 'https://cdn.skypack.dev/get-packages-recursive';
</script>

README

get-packages-recursive

Audit a directory recursive to find out every package.json Resolves the name and the version.

Install

npm i get-packages-recursive

Example

const getInfo = require('get-packages-recursive');
const info = getInfo(path)
console.log(info);