package
Get the package.json path in a specific directory.
npm install package-json-pathGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Estimated unpacked size across 5 packages.
41.2 kB
Includes dependencies.
Get the package.json path in a specific directory.
# Using npm
npm install --save package-json-path
# Using yarn
yarn add package-json-pathconst packPath = require("package-json-path");
console.log(packPath("~/path/to/my/module"));
// => /home/ionicabizau/path/to/my/module/package.json
console.log(packPath("relative/path/to/module"));
// => /home/ionicabizau/Documents/.../relative/path/to/module/package.jsonThere are few ways to get help:
packageJsonPath(dir)Finds the absolute path to the package.json path.
dir: The path to the directory.package.json file.Have an idea? Found a bug? See how to contribute.
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
Starring and sharing the projects you like :rocket:
—I love books! I will remember you after years if you buy me one. :grin: :book:
—You can make one-time donations via PayPal. I'll probably buy a
coffee tea. :tea:
—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).
Thanks! :heart:
If you are using this library in one of your projects, add it in this list. :sparkles:
@kcram-solutions/node-scripts@omnistream/generatorsangularvezbabloggify-plugin-classelectron-updater-xmade-in-brazilmade-in-indiamade-in-romaniamarkdownalint-cli2np-initpackyr-package-jsonship-releasetestnettools_may_24w-package-jsonBitcoin—You can send me bitcoins at this address (or scanning the code below): 1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6
