{ "name": "run-script-os", "version": "1.1.6", "description": "run-script-os is a tool that will let you use generic npm script commands that will pass through to os specific commands.", "main": "index.js", "scripts": { "example": "echo '0. Call either npm test, npm run test, or npm run-script test and check out the output to see how pre and post commands work with run-script-os'", "pretest": "echo '1. Pretest (Generic) called first when running npm test'", "test": "echo '2. Test (Generic) runs transitioning to OS specific code' && run-script-os", "pretest:win32": "echo '3. Pretest (Windows 32/64)'", "test:win32": "echo '4. Test (Windows 32/64)'", "posttest:win32": "echo '5. Posttest (Windows 32/64)'", "pretest:linux:darwin": "echo '3. Pretest (Linux/MacOS)'", "test:linux:darwin": "echo '4. Test (Linux/MacOS)'", "posttest:linux:darwin": "echo '5. Posttest (Linux/MacOS)'", "posttest": "echo '6. Posttest (Generic) is finally called after all of the OS specific commands are called'", "test-error": "run-script-os", "test-error:linux": "echo 'Run $? afterwards to confirm the error code is propagating appropriately.' && exit 11", "test-error:win32": "echo 'Run $LASTEXITCODE (PowerShell) or %errorlevel% (CMD) afterwards to confirm the error code is propagating appropriately.' && exit 22", "test-args": "run-script-os 'Hello,' 'run-script-os.'", "test-args:default": "echo" }, "author": "Charlie Guse (https://github.com/charlesguse/run-script-os)", "license": "MIT", "bin": { "run-script-os": "./index.js", "run-os": "./index.js" }, "repository": { "type": "git", "url": "https://github.com/charlesguse/run-script-os.git" }, "files": [ "LICENSE", "functions.js", "index.js", "package.json", "README.md" ] }