MCPcopy Index your code
hub / github.com/nodejs/node / htmlMan

Method htmlMan

deps/npm/lib/commands/help.js:106–110  ·  view source on GitHub ↗
(man)

Source from the content-addressed store, hash-verified

104
105 // Returns the path to the html version of the man page
106 htmlMan (man) {
107 const sect = manSectionNames[man.match(manNumberRegex)[1]]
108 const f = path.basename(man).replace(manNumberRegex, '')
109 return 'file:///' + path.resolve(this.npm.npmRoot, `docs/output/${sect}/${f}.html`)
110 }
111}
112
113module.exports = Help

Callers 1

viewManMethod · 0.95

Calls 2

matchMethod · 0.65
resolveMethod · 0.45

Tested by

no test coverage detected