JS_OF_OCAML(1)
π JS_OF_OCAML π
okay so bestie, welcome to the Js_of_ocaml Manual β section 1 of the manual, the one and only, and yes we're doing this together π«Ά
β¨ NAME β¨
js_of_ocaml β the Js_of_ocaml linker. that's her. that's the whole name. iconic behavior honestly π
β¨ SYNOPSIS β¨
js_of_ocaml [OPTION]β¦ [JS_FILES]β¦
look at that. options first, then a bunch of JavaScript files. simple. clean. a vibe π
β¨ DESCRIPTION β¨
so like, jsoo_link is a JavaScript linker, periodt. what does a linker do, you ask? she takes a whole pile of JavaScript files and concatenates them into one, and the whole time she's keeping the sourcemap information intact β which is the part that actually matters, because losing your sourcemaps is giving "lost in the sauce" and we do NOT do that here π
β¨ ARGUMENTS β¨
JS_FILESβ the JavaScript files you want to link together. that's it. that's the job. hand her your files and she links 'em π
β¨ OPTIONS β¨
--help[=FMT] (default=auto) β show this very help, in whatever formatFMTyou want.FMThas to be one ofauto,pager,groff, orplain. and here's the cute part: withauto, the format ends up beingpagerorplainwhenever theTERMenv var isdumbor justβ¦ not set at all. she's reading your environment, she's being considerate π-oFILE β set the output file name toFILE. this is where the linked masterpiece goes π--resolve-sourcemap-url=VAL(absent=false) β resolve the source map url. yep. that's the whole thing. VAL goes in, resolving happens β¨--source-map-inlineβ inline the sourcemap directly inside the generated JavaScript. no separate file, she's keeping it all in one place, very "I contain multitudes" π¦--source-map-root=VALβ root dir for the source map. you're telling her where home base is πΈ--sourcemap,--source-mapβ generate a source map. two names, same girl, she answers to both π--versionβ show version information. she'll tell you exactly which era of herself you're dealing with β
β¨ BUGS β¨
found a bug? bestie, bugs are tracked on github at https://github.com/ocsigen/js_of_ocaml/issues β go tell them, they're literally waiting π
β¨ SEE ALSO β¨
ocaml(1)β yes, her ancestor. the family tree is real π
β¨ AUTHORS β¨
Jerome Vouillon, Hugo Heuzard. two absolute legends, no cap π
β¨ LICENSE β¨
Copyright (C) 2010-2019.
jsoo_link is free software β you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, with linking exception; either version 2.1 of the License, or (at your option) any later version. so likeβ¦ go forth, remix, redistribute, just respect the license bestie π«Ά
lowkey important: that's the LGPL with the linking exception, version 2.1 or later. don't skip the fine print, the fine print ate π
and that's the page!! this was Js_of_ocaml 4.0.0, hanging out in section JS_OF_OCAML(1) of the manual. tysm for reading, ily, go link some JavaScript π§π
π¦ where this page comes from
- debian bookworm: js-of-ocaml 4.0.0-2+b6 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms