@yarn-tool/resolve-package

resolve package root and package.json paths , work on node 17 too

Usage no npm install needed!

<script type="module">
  import yarnToolResolvePackage from 'https://cdn.skypack.dev/@yarn-tool/resolve-package';
</script>

README

README.md

resolve package root and package.json paths , work on node 17 too

install

yarn add @yarn-tool/resolve-package
yarn-tool add @yarn-tool/resolve-package
yt add @yarn-tool/resolve-package
import { resolvePackageJsonLocation } from '@yarn-tool/resolve-package'

console.dir(resolvePackageJsonLocation('tslib'));