@kvaser/canking-api
Version:
CanKing API to communicate with the CanKing service using Node.js.
15 lines (12 loc) • 385 B
JavaScript
;
if (process.argv.length === 3 && (process.argv[2] === '--help' || process.argv[2] === '-h')) {
const { exec } = require('child_process');
const path = require('path');
const filePath = path.join(__dirname, './doc/index.html');
exec(`start ${filePath}`, err => {
if (err) {
console.error('Failed to open file:', err);
}
});
}