- Install package.
npm i --location=global @nonz250/image-base64
Restart terminal.
image-base64 --help
image-base64 encode <path>
image-base64 encode ~/foo/bar.png
image-base64 encode ./baz.png
- Npx command.
npx @nonz250/image-base64 --help
npx @nonz250/image-base64 encode <path>
npx @nonz250/image-base64 encode ~/foo/bar.png
npx @nonz250/image-base64 encode ./baz.png