Get PATH of your node runtime and modules
npm install sb-npm-pathNPM-Path
=========
NPM-Path is a helper node module that gives you PATH value including all the locally installed npm bins.
``sh`
npm install --save sb-npm-path
`js
function getPath(rootDirectory?: string): string
function getPathAsync(rootDirectory?: string): Promise
function clearCache(): void
export default getPath
export { getPath, getPathAsync, clearCache }
`
js
import { exec } from 'sb-exec'
import npmPath from 'npm-path'export default async function run() {
const PATH = await npmPath.async(__dirname)
return await exec('mocha', { env: { PATH } })
}
``This project is licensed under the terms of MIT License, see the LICENSE file for more info