Skip to content

Instantly share code, notes, and snippets.

@zjaml
zjaml / npm-exec.bat
Created April 19, 2017 04:20 — forked from joeyespo/npm-exec.bat
Execute a node_modules/.bin script on Windows.
@ECHO OFF
SETLOCAL
REM Speed up by checking for bin directory directly
IF NOT EXIST node_modules\.bin GOTO FINDBIN
SET BIN=.\node_modules\.bin
GOTO RUN
:FINDBIN
REM Find the current bin directory from npm, storing the result in 'BIN'