Get the package.json of the currently executing bin.
This is meant to be used in combination with tiny-updater or similar, in order to get the name and the version of the currently executing bin very conveniently, without importing a "package.json" and without hard-coding the values yourself.
Install
npm install get-current-package
Usage
You should have something like this in your bin app:
import getCurrentPackage from 'get-current-package';console.log ( getCurrentPackage () );