1const isWindows = require('./is-windows.js') 2const getPrefix = require('./get-prefix.js') 3const getNodeModules = require('./get-node-modules.js') 4const { dirname } = require('path') 5 6module.exports = ({ top, path }) => 7 !top ? getNodeModules(path) + '/.bin' 8 : isWindows ? getPrefix(path) 9 : dirname(getPrefix(path)) + '/bin' 10