basis bin-wrapper that makes it seamlessly available as a local dependency
const {execFile} = require('child_process');
const basis = require('basis-bin');
execFile(basis, ['input.png', '-output_file', 'output.basis'], err => {
if (err) throw err;
console.log('Image is converted!');
});You can install basis globally.
npm install --global basis-binAnd use it as a CLI command.
basis --help