MCPcopy Index your code
hub / github.com/stdlib-js/stdlib / hashToLink

Function hashToLink

tools/docs/jsdoc/templates/html/publish.js:36–43  ·  view source on GitHub ↗
(doclet, hash)

Source from the content-addressed store, hash-verified

34}
35
36function hashToLink(doclet, hash) {
37 if ( !/^(#.+)/.test(hash) ) { return hash; }
38
39 var url = helper.createLink(doclet);
40
41 url = url.replace(/(#.+|$)/, hash);
42 return '<a href="' + url + '">' + hash + '</a>';
43}
44
45function needsSignature(doclet) {
46 var needsSig = false;

Callers 1

publish.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…