Get the current package's binary path
APACHE-2.0 License
18.18.0
Published by ehmicky over 1 year ago
16.17.0
Published by ehmicky over 1 year ago
undefined
is now always returned when the binary cannot be found. Previously, a random binary was sometimes returned instead. This happens when:
name
option is used but no binary of that name is found.package.json
uses a directories.bin
with multiple binaries, but none matches the package.json
name
or name
option.package.json
bin
field is a string, the name
option (when defined) must match the package.json
name
field.Published by ehmicky almost 2 years ago
directories.bin
field in package.json
Published by ehmicky almost 2 years ago
package.json
Published by ehmicky almost 2 years ago
Published by ehmicky about 2 years ago
Published by ehmicky over 2 years ago
14.18.0
Published by ehmicky almost 3 years ago
Published by ehmicky over 3 years ago
main
field in package.json
Published by ehmicky over 3 years ago
12.20.0
import
or import()
statement, not require()
. See this post for more information.Published by ehmicky over 4 years ago
Published by ehmicky over 4 years ago
core-js
dependencyPublished by ehmicky over 4 years ago
Thanks @evocateur for your first contribution!
core-js
dependencyPublished by ehmicky almost 5 years ago
10.17.0
Published by ehmicky almost 5 years ago
name
an option instead of a positional argument (3d0529d)Published by ehmicky about 5 years ago
package.json
bin
field is an object with a single property (such{ "bin": { "mylib": "./path/to/bin.js" } }
), it is not longer necessaryname
.Published by ehmicky over 5 years ago