马宇豪
2024-08-21 6c77a2bafa0a5a77ed21299b8c0f0db127e831cb
1
2
3
4
5
6
const isWindows = require('./is-windows.js')
const getPrefix = require('./get-prefix.js')
const { dirname } = require('path')
 
module.exports = ({ top, path }) => !top || isWindows ? null
  : dirname(getPrefix(path)) + '/share/man'