Skip to content
Myr

Readme tweaks (#340)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent 82d2a4a · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:readme.md+1 added-2 removed
506 unmodified lines
507const binPath = getBinPathSync();508const subprocess = execa(binPath);509```510511This is useful when testing the current package's binary. As opposed to hard-coding the path to the binary, this validates that the `package.json` `bin` field is correctly set up.511`execa` can be combined with [`get-bin-path`](https://github.com/ehmicky/get-bin-path) to test the current package's binary. As opposed to hard-coding the path to the binary, this validates that the `package.json` `bin` field is correctly set up.512513513## Related514515- [gulp-execa](https://github.com/ehmicky/gulp-execa) - Gulp plugin for `execa`516
18 unmodified lines