dotfiles/vscode/.vscode/extensions/matangover.mypy-0.3.1/node_modules/lookpath/bin/lookpath.js
Errol Sancaktar 5f8db31398 alacritty
2024-07-15 17:06:13 -06:00

9 lines
260 B
JavaScript
Executable File

#! /usr/bin/env node
const [ , , arg] = process.argv;
require('../lib').lookpath(arg || '').then(found => {
if (!found) throw new Error(`Not found: ${arg}`);
console.log(found);
}).catch(err => {
console.error(err.message);
process.exit(1);
});