tree-sitter-dfraw/node_modules/tree-sitter-cli/cli.js

13 lines
303 B
JavaScript
Raw Normal View History

2021-09-24 00:22:14 +03:00
#!/usr/bin/env node
const path = require('path');
const spawn = require("child_process").spawn;
const executable = process.platform === 'win32'
? 'tree-sitter.exe'
: 'tree-sitter';
spawn(
path.join(__dirname, executable),
process.argv.slice(2),
{stdio: 'inherit'}
).on('close', process.exit)