/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/npm/node_modules/bin-links/lib/bin-target.js
9 строк
329 B
npm team
deps: upgrade npm to 8.3.2
24 янв 2022, 17:26
Не верифицирован
24 янв 2022, 17:26
c0ef0d5
Код
Авторство
О чём код?
const isWindows = require('./is-windows.js') const getPrefix = require('./get-prefix.js') const getNodeModules = require('./get-node-modules.js') const { dirname } = require('path') module.exports = ({ top, path }) => !top ? getNodeModules(path) + '/.bin' : isWindows ? getPrefix(path) : dirname(getPrefix(path)) + '/bin'