We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98a0453 commit c602a4aCopy full SHA for c602a4a
README.md
@@ -62,3 +62,14 @@ module.exports = binwrap({
62
Then run `npm test` to verify that your packages are published correctly.
63
64
Finally, run `npm publish` when you are ready to publish your installer.
65
+
66
67
+## Javascript API
68
69
+Javascript code can get the absolute path to a binary from a package that uses binwrap
70
+as follows (in this example, "my-package" is a published npm package that uses binwrap,
71
+and has a `my-package-cli` binary):
72
73
+```js
74
+const cliPath = require('my-package').paths['my-package-cli'];
75
+```
0 commit comments