{ "_id": "npm-run-path", "_rev": "12-4e1b6fcdead326d7575a5f337fce8c9d", "name": "npm-run-path", "description": "Get your PATH prepended with locally installed binaries", "dist-tags": { "latest": "4.0.1" }, "versions": { "1.0.0": { "name": "npm-run-path", "version": "1.0.0", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/sindresorhus/npm-run-path" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^1.0.0" }, "devDependencies": { "ava": "*", "xo": "*" }, "gitHead": "8565fe56a35dd58bde38d20409339ba2e0200bd0", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path", "_id": "npm-run-path@1.0.0", "_shasum": "f5c32bf595fe81ae927daec52e82f8b000ac3c8f", "_from": ".", "_npmVersion": "2.14.12", "_nodeVersion": "4.2.4", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "f5c32bf595fe81ae927daec52e82f8b000ac3c8f", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-1.0.0.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {} }, "2.0.0": { "name": "npm-run-path", "version": "2.0.0", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=4" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^2.0.0" }, "devDependencies": { "ava": "*", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "3511ae423a6e89fe381aa602b92b36e2630740c1", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@2.0.0", "_shasum": "b860993b6c0d2a243f370d8d24dba198899648bf", "_from": ".", "_npmVersion": "2.15.9", "_nodeVersion": "4.5.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "b860993b6c0d2a243f370d8d24dba198899648bf", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.0.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/npm-run-path-2.0.0.tgz_1474785287361_0.8598830895498395" }, "directories": {} }, "2.0.1": { "name": "npm-run-path", "version": "2.0.1", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=4" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^2.0.0" }, "devDependencies": { "ava": "*", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "3bce80f6128d30bd75e7fd7123d72b62c5e1f0e7", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@2.0.1", "_shasum": "0c89ba91d4b4c3e3f3f9579a9b733cc9ab429d90", "_from": ".", "_npmVersion": "2.15.9", "_nodeVersion": "4.5.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "0c89ba91d4b4c3e3f3f9579a9b733cc9ab429d90", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.1.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/npm-run-path-2.0.1.tgz_1475038953258_0.8133386990521103" }, "directories": {} }, "2.0.2": { "name": "npm-run-path", "version": "2.0.2", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=4" }, "scripts": { "test": "xo && ava" }, "files": [ "index.js" ], "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^2.0.0" }, "devDependencies": { "ava": "*", "xo": "*" }, "xo": { "esnext": true }, "gitHead": "4d956312d5da324c4eff435af7d80797f04f09e1", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@2.0.2", "_shasum": "35a9232dfa35d7067b4cb2ddf2357b1871536c5f", "_from": ".", "_npmVersion": "3.10.3", "_nodeVersion": "6.6.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "shasum": "35a9232dfa35d7067b4cb2ddf2357b1871536c5f", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "_npmOperationalInternal": { "host": "packages-16-east.internal.npmjs.com", "tmp": "tmp/npm-run-path-2.0.2.tgz_1475136638037_0.6285470693837851" }, "directories": {} }, "3.0.0": { "name": "npm-run-path", "version": "3.0.0", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=8" }, "scripts": { "test": "xo && ava && tsd-check" }, "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^3.0.0" }, "devDependencies": { "ava": "^1.3.1", "tsd-check": "^0.3.0", "xo": "^0.24.0" }, "gitHead": "74fca6345b0ddc06c8e4e9e5587e1e2594a28e06", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@3.0.0", "_nodeVersion": "10.15.1", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-42wmNM/F44tq5pDfDDwYWh30JbQokeUn79/6qNyoEvCSOMy0Q2iHe7unLRzRWQL5JLrOoQT6WzSuc6ylvEMmNg==", "shasum": "9bbd1824407d510ef3576c5ebc8b418dead140d9", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.0.0.tgz", "fileCount": 5, "unpackedSize": 6069, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchSxuCRA9TVsSAnZWagAAOjMP/iWz+r6+vdCG8uP2gUgf\nMxz6yTYrUTjsr7pUIZjHRsd6pxTF1sgLWnxi0fJIDbizKR/t+MhaC/cIbVUA\n0iLYc0jK2l+U7LyZ1HSPWzQ7Btqu7omSnW7NCHhk7voVzUT/BqKyJbQfEtaw\nAxiabuc9FOiEhyICAHNM0DOmJlApRdtecgo9Kw9M8dORyYZxgdVn7aZkPsc8\n38mPs/W7IZz1qJRv6hkeWvCag4J++/UGKgCINgqAkIW4Y5/Kd+ChGe+u3ZSt\nH1/Q4TQ6TCbC05dai28W1RxN0tp8NPsaMNH7PGy6oYV7cK6LTwV3HUfF73vJ\n+1ULSW2yOOQ8I9M2Zp4xQEeC0dGV1jZF/kTfaDrJnrpExkzbmSUPIKYh3zyb\nSTZ9X71gaNgupLfpi4pADkGCvIoNBCAhbof16Tj/pcu0hFs9JFCzBMKy6di+\n4JZBc+KKr1tkETyUlExeoloEFAdl3iQvr50n/wHLhggdIMNu8TkNieiYIOxm\nEDfSGKnuipETR0+LWQ9E+WOVghRYk0NROeSUqFO3H1+p3eCDzNv5VKyVEbnd\nIHEvP5e6bU7kYQG9P8q8zaotiZFWGPmJodFtU9Py3BJFJ77b0MEOPbBESWTA\nXg0fjgtJvfhJO2HkokqgbqjxfMnbe2+q+Ld2BiIu6H+gkmQBAMxYIARXFJOF\nAbEN\r\n=Njue\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/npm-run-path_3.0.0_1552231534136_0.9456079331176104" }, "_hasShrinkwrap": false }, "3.1.0": { "name": "npm-run-path", "version": "3.1.0", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=8" }, "scripts": { "test": "xo && ava && tsd" }, "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^3.0.0" }, "devDependencies": { "ava": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" }, "gitHead": "1f745c451448a8bbf2044211071793a1444edc31", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@3.1.0", "_nodeVersion": "8.15.0", "_npmVersion": "6.9.0", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-Dbl4A/VfiVGLgQv29URL9xshU8XDY1GeLy+fsaZ1AA8JDSfjvr5P5+pzRbWqRSBxk6/DW7MIh8lTM/PaGnP2kg==", "shasum": "7f91be317f6a466efed3c9f2980ad8a4ee8b0fa5", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-3.1.0.tgz", "fileCount": 5, "unpackedSize": 6583, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpvcoCRA9TVsSAnZWagAA150P/iIbvxbp73CDQ1XgmbAs\nkvNvUNhWqmHQ1wpfCde9qkIrCcrvYjn1p6tDXCL3HZXZQZATkB9KSOn5XlZd\nZmpfnHZvvoUu4hfVTQXIZjHoNvO2VvxOj+D+9Og/wzM6cJtAOmz/C3XBXR2B\nI8nWdzq1typyfJjVCYruvlVh6OuxX/Fx+9aGveNhSPXeCklDdqyOjgr9iR+W\nXsD48hHc7EfMr2N+vE5c0ErC/Y63segd3H+Q85RN3yVSFAWGlvjlUyL54t5S\nyPe7KBdmk8lprre4rVlaHlM7X1w5N5MmGZW7uYH3v/c6y0ZObXYZ+jBU/TRp\ncihsdaCnr2rtx3s8R8q21MVqUAWBxg9CdBrvTA5PRIH0V0+mlZGUk7bf7PIO\nD/n3rALpnchlPj8qmNgp1F5+CCPcHFQx+qrLEDH9FRDjrqOdHIgUDAsNIMd4\nlNsI/4p86ypVPq2w6h5J8IB9MNkLxYIj+Z5ClVv+toYoc9hB0go7rvYB6S8Z\nxSp+e9f24ZxlI+6fEpv7nzONq2R4TujY6ZQii+kFMnQ0FJGfe+TYhcyXW09W\n/VEZw757MV1BMfvItTCuMwEtpm6PN2XxVj0z5IPKiqG627NsFhEoe7GTLtyF\n2I2kBGlaNgxD/zWOGV5j2i0UpXph5G8SLDTFW6eBnNbIGzlPfH9RxbKfqhdd\nW2Gl\r\n=1jCu\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/npm-run-path_3.1.0_1554446119558_0.8857482387067892" }, "_hasShrinkwrap": false }, "4.0.0": { "name": "npm-run-path", "version": "4.0.0", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=8" }, "scripts": { "test": "xo && ava && tsd" }, "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^3.0.0" }, "devDependencies": { "ava": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" }, "gitHead": "879ba920b0c06aed2c6c4952aa54aa7d2684fece", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@4.0.0", "_nodeVersion": "10.16.3", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-8eyAOAH+bYXFPSnNnKr3J+yoybe8O87Is5rtAQ8qRczJz1ajcsjg8l2oZqP+Ppx15Ii3S1vUTjQN2h4YO2tWWQ==", "shasum": "d644ec1bd0569187d2a52909971023a0a58e8438", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.0.tgz", "fileCount": 5, "unpackedSize": 8131, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdpGhwCRA9TVsSAnZWagAAu4MP/3O2zLIocn4M+WLugen4\nJjMoFm/N0nh6hrX6O5HMxvS/Tx09QcaxfWMogW07db5XztoBHJVgitF5t+8p\nH6ifQ+ohx08Qz3EVkCcZCgfrtKWrA3m3TVII0WvyVsDkal1+Fjw9xw9JsRSq\nZHBmg+wRHTfptEdOnOQ8yuX3a1FfKqmsaVOU3vDzOMWEv6J40nN+cPLgBTyk\n8AdR7m7vwTCIxg1bURKtH2BdqSjc6CbGUpLPeWw+SvCBSMCL2f6MuPZtGFjQ\nDyuKhIJHBnWKyjYRT2MC8di1nGMgjgUDgcnwJ5ftJsfEM2zzTYqN6VuW/vZN\nwLFG7dSgvyVcfLeeCV+xOxosszGzUcYyEUTvmow/M06gUxWjUNr3MBaQQ6uc\n6iQRheNDNxprm4U44VfcoxPmCFn8oQ5dFvCD3Xwfy6kB/oXNwiaTE1Cdxiuh\n55NSlxG4iCk/B8/A+qFCGLtF68Xceiw7x/fy/DRA4ODI0e7zNE+469zLu1bu\nGzTjviwR8Pl4qBTyjZVjOx0gNbXebt4li8WBTvYjZkR1/RxEk5XKgJZo6kqx\nXiZQ+nQBYPyG6lxwS+pvtmWJFuEZEZPvQ0Uvjsai7L0F56ETABGudYFUp11g\n+IHJu1OABj7GhVCSB9ZmoAAjqtS/rHKfqJQ3FXzxTwbGRlYF4ucArGJZtQkg\nT598\r\n=7DtX\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/npm-run-path_4.0.0_1571055728173_0.006643689593938573" }, "_hasShrinkwrap": false }, "4.0.1": { "name": "npm-run-path", "version": "4.0.1", "description": "Get your PATH prepended with locally installed binaries", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "engines": { "node": ">=8" }, "scripts": { "test": "xo && ava && tsd" }, "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "dependencies": { "path-key": "^3.0.0" }, "devDependencies": { "ava": "^1.4.1", "tsd": "^0.7.2", "xo": "^0.24.0" }, "gitHead": "09c9017b77591ced1723bd71ef9f3b5e72349268", "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "_id": "npm-run-path@4.0.1", "_nodeVersion": "10.17.0", "_npmVersion": "6.11.3", "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "dist": { "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "shasum": "b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea", "tarball": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "fileCount": 5, "unpackedSize": 8128, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/+hxCRA9TVsSAnZWagAA2WYP/RRlICElf+0xwthqYMBR\nejdSe9zlveJk35MLTa6vCb86QuNi9OuTyeE6ltAqRBLbtk4fJZ9x5hI4LqEk\nisGpb+1gk212mzxhKJvC2dLxMBHXZEWycPLVrLxfg96F5vFtd09xL0j9Vlds\nf/YvoPY08ey4z4G1oIugpnSC+9Q/abtdmTB6ZNKrIJWONktNSYBDIbnoJkJ2\nNoVKjEb8uuHoNAbFo4Hbp6H1flPbuwyLMw8xkbHr6hjiTVNkxwmQL9O43bK7\nfBsHe3WwSRbypc9kcya2VzqsTenUQXYYshTMF69cde7r+EQIhd/lR0c+/gD1\ncFNfsYGJGjyP+pudKqwJNSaUCvNxRi+PkZ7H+NKmhn9vGD8lhKv2e4N9SdVl\nN3jkkUHkR1UXgUOPzVKXSyvQexjHgGUQXle4VNO/jIQORjfXwkBOQbWsZd0N\nWevYJxKyrp5Y3KQ47YEj7AqJT1tLCbUmXmD0UEmNJ1ibPteiuc7f8k1tjuq+\nOSKu8v6k+qGB/fyEqkvbDPxNu3mJGBVKnBWj3UMu3d8KZL/Cwce/c9bIXCPF\nI2DbDLtffXtwyW75fvshpgtNAF605kpkoKwYHMp9/S+teDxxYKVN6bDRilzA\n9IOdhL+CJG4KFuIHB/uEypgMJYGtXtPWDfa4tax5EBTQC5wasub1ZuMB70Go\nWbdv\r\n=Skp3\r\n-----END PGP SIGNATURE-----\r\n" }, "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "directories": {}, "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/npm-run-path_4.0.1_1577052272701_0.6308620576315229" }, "_hasShrinkwrap": false } }, "readme": "# npm-run-path [![Build Status](https://travis-ci.org/sindresorhus/npm-run-path.svg?branch=master)](https://travis-ci.org/sindresorhus/npm-run-path)\n\n> Get your [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) prepended with locally installed binaries\n\nIn [npm run scripts](https://docs.npmjs.com/cli/run-script) you can execute locally installed binaries by name. This enables the same outside npm.\n\n\n## Install\n\n```\n$ npm install npm-run-path\n```\n\n\n## Usage\n\n```js\nconst childProcess = require('child_process');\nconst npmRunPath = require('npm-run-path');\n\nconsole.log(process.env.PATH);\n//=> '/usr/local/bin'\n\nconsole.log(npmRunPath());\n//=> '/Users/sindresorhus/dev/foo/node_modules/.bin:/Users/sindresorhus/dev/node_modules/.bin:/Users/sindresorhus/node_modules/.bin:/Users/node_modules/.bin:/node_modules/.bin:/usr/local/bin'\n\n// `foo` is a locally installed binary\nchildProcess.execFileSync('foo', {\n\tenv: npmRunPath.env()\n});\n```\n\n\n## API\n\n### npmRunPath(options?)\n\nReturns the augmented path string.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nType: `string`
\nDefault: `process.cwd()`\n\nWorking directory.\n\n##### path\n\nType: `string`
\nDefault: [`PATH`](https://github.com/sindresorhus/path-key)\n\nPATH to be appended.
\nSet it to an empty string to exclude the default PATH.\n\n##### execPath\n\nType: `string`
\nDefault: `process.execPath`\n\nPath to the current Node.js executable. Its directory is pushed to the front of PATH.\n\nThis can be either an absolute path or a path relative to the [`cwd` option](#cwd).\n\n### npmRunPath.env(options?)\n\nReturns the augmented [`process.env`](https://nodejs.org/api/process.html#process_process_env) object.\n\n#### options\n\nType: `object`\n\n##### cwd\n\nType: `string`
\nDefault: `process.cwd()`\n\nWorking directory.\n\n##### env\n\nType: `Object`\n\nAccepts an object of environment variables, like `process.env`, and modifies the PATH using the correct [PATH key](https://github.com/sindresorhus/path-key). Use this if you're modifying the PATH for use in the `child_process` options.\n\n##### execPath\n\nType: `string`
\nDefault: `process.execPath`\n\nPath to the Node.js executable to use in child processes if that is different from the current one. Its directory is pushed to the front of PATH.\n\nThis can be either an absolute path or a path relative to the [`cwd` option](#cwd).\n\n\n## Related\n\n- [npm-run-path-cli](https://github.com/sindresorhus/npm-run-path-cli) - CLI for this module\n- [execa](https://github.com/sindresorhus/execa) - Execute a locally installed binary\n\n\n---\n\n
\n\t\n\t\tGet professional support for this package with a Tidelift subscription\n\t\n\t
\n\t\n\t\tTidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.\n\t
\n
\n", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "time": { "modified": "2019-12-22T22:04:35.343Z", "created": "2015-12-28T18:54:14.293Z", "1.0.0": "2015-12-28T18:54:14.293Z", "2.0.0": "2016-09-25T06:34:49.794Z", "2.0.1": "2016-09-28T05:02:34.870Z", "2.0.2": "2016-09-29T08:10:39.751Z", "3.0.0": "2019-03-10T15:25:34.328Z", "3.1.0": "2019-04-05T06:35:19.707Z", "4.0.0": "2019-10-14T12:22:08.330Z", "4.0.1": "2019-12-22T22:04:32.828Z" }, "homepage": "https://github.com/sindresorhus/npm-run-path#readme", "keywords": [ "npm", "run", "path", "package", "bin", "binary", "binaries", "script", "cli", "command-line", "execute", "executable" ], "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/npm-run-path.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/npm-run-path/issues" }, "license": "MIT", "readmeFilename": "readme.md", "users": { "aretecode": true, "yikuo": true } }