JSDOC2(1)
π JSDOC2 π
okay bestie, welcome to the manual page for jsdoc2, from the jsdoc2 User Manual β yes it's a real manual, yes it's for you, and yes we're gonna get through it together π«Ά
β¨ NAME β¨
jsdoc2 β the automatic documentation generation tool for JavaScript, and honestly? it's giving "your code but make it cute and readable" πΈ
β¨ SYNOPSIS β¨
jsdoc2 [OPTIONS] [<SRC_DIR>] [<SRC_FILE>] [...]
jsdoc2 --help
β¨ USAGE β¨
so a valid command line to run jsdoc2 might literally look like this, no cap:
jsdoc2 -a -t=templates/jsdoc mycode.js
that's it. that's the vibe. π
β¨ DESCRIPTION β¨
this manual page documents briefly the jsdoc2 command. lowkey a whole introduction.
okay so real talk β this manual page was written for the Debian distribution because the original program does not have a manual page. so we made one. you're welcome π
jsdoc2 is an automatic documentation generation tool for JavaScript. it's written in JavaScript, it's run from a command line (or terminal, same thing bestie), and it uses NodeJS. iconic.
using this tool you can automatically turn JavaDoc-like comments in your JavaScript source code into published output files, such as HTML or XML. like, your comments get a whole glow-up and become actual docs. obsessed. β¨
β¨ OPTIONS β¨
here's the full lineup, every single one, no skips π§
-a,--allfunctionsβ include all functions, even the undocumented ones. messy but honest, we respect it π-c,--confβ load a configuration file.-d=PATH,--directory=PATHβ output to this directory. defaults to"out"if you don't say anything π-D="myVar:My value",--define="myVar:My value"β can be used multiple times. define a variable that's available in JsDoc asJSDOC.opt.D.myVar. yes, exactly like that.-e=ENCODING,--encoding=ENCODINGβ use this encoding to read and write files.-E=REGEX,--exclude=REGEXβ can be used multiple times. exclude files based on the supplied regex. bye felicia π-h,--helpβ show a summary of options. your safety net bestie π«Ά-m,--multiplesβ don't warn about symbols being documented more than once. let them live.-n,--nocodeβ ignore all code, only document comments with@nametags. minimalism era.-o=PATH,--out=PATHβ print log messages to a file. defaults tostdout.-p,--privateβ include symbols tagged as private, underscored and inner symbols. we're airing out the private stuff now π-q,--quietβ do not output any messages, not even warnings. silence. pure silence. π€«-r=DEPTH,--recurse=DEPTHβ descend into src directories.-s,--suppressβ suppress source code output.-S,--securemodulesβ use Secure Modules mode to parse source code. safety first, always π₯-t=PATH,--template=PATHβ required. use this template to format the output. like, you genuinely cannot skip this one bestie, it's mandatory π-T,--testβ run all unit tests and exit.-u,--uniqueβ force file names to be unique, but not based on symbol names.-v,--verboseβ provide verbose feedback about what is happening. the commentary track we deserve β¨-x=<EXT>[,EXT]...,--ext=<EXT>[,EXT]...β scan source files with the given extension/s. defaults tojs.
β¨ AUTHOR β¨
Georges Khaznadar <georgesk@debian.org>
- wrote this manpage for the Debian system. king behavior π
β¨ COPYRIGHT β¨
Copyright Β© 2024 georgesk
this manual page was written for the Debian system (and may be used by others).
permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation.
on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
okay that's the whole page bestie, you ate it, no crumbs left π and just so you have the receipts: this was jsdoc2, dated 02/12/2024, filed under JSDOC2(1). go document something gorgeous πβ¨
π¦ where this page comes from
- debian trixie: node-jsdoc2 2.4.0-3 Β· MIT
- ubuntu noble: node-jsdoc2 2.4.0-3 Β· MIT
- ubuntu resolute: node-jsdoc2 2.4.0-3 Β· MIT
- ubuntu stonking: node-jsdoc2 2.4.0-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms