Spaces:
Running
Running
Download node_modules/JSV/jsdoc-toolkit/app/plugins/commentSrcJson.js from k-l-lambda/lotus: direct link, hf CLI and curl.
- Browser
- Download file 453 Bytes
-
https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/JSV/jsdoc-toolkit/app/plugins/commentSrcJson.js
- Command line
-
hf download hf://spaces/k-l-lambda/lotus/node_modules/JSV/jsdoc-toolkit/app/plugins/commentSrcJson.js
-
curl -L -o commentSrcJson.js https://huggingface.co/spaces/k-l-lambda/lotus/resolve/main/node_modules/JSV/jsdoc-toolkit/app/plugins/commentSrcJson.js
453 Bytes
| JSDOC.PluginManager.registerPlugin( | |
| "JSDOC.commentSrcJson", | |
| { | |
| onDocCommentSrc: function(comment) { | |
| var json; | |
| if (/^\s*@json\b/.test(comment)) { | |
| comment.src = new String(comment.src).replace("@json", ""); | |
| eval("json = "+comment.src); | |
| var tagged = ""; | |
| for (var i in json) { | |
| var tag = json[i]; | |
| // todo handle cases where tag is an object | |
| tagged += "@"+i+" "+tag+"\n"; | |
| } | |
| comment.src = tagged; | |
| } | |
| } | |
| } | |
| ); |