How to use the cmd-shim.ifExists function in cmd-shim

To help you get started, we’ve selected a few cmd-shim examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nicojs / node-link-parent-bin / src / link.ts View on Github external
return new Promise((res, rej) => {
            cmdShim.ifExists(from, to, (err: any) => {
                if (err) {
                    rej(err);
                } else {
                    res(undefined);
                }
            });
        });
    }

cmd-shim

Used in npm for command line application support

ISC
Latest version published 3 months ago

Package Health Score

92 / 100
Full package analysis

Similar packages