Skip to content

Instantly share code, notes, and snippets.

@laurence-myers
Created August 22, 2018 02:47
Show Gist options
  • Save laurence-myers/b36b0337a0e13e262a4076af63a66d4b to your computer and use it in GitHub Desktop.
Save laurence-myers/b36b0337a0e13e262a4076af63a66d4b to your computer and use it in GitHub Desktop.
Bulk decaffeinate batch script for Windows
FOR /f "delims=" %%i IN ('npm bin') DO SET DECAF=%%i
SET DECAF="%DECAF%\decaffeinate"
echo %decaf%
cd app
for /R %%f in (*.coffee) do (
echo "%%f"
%decaf% %%f
)
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment