JS_OF_OCAML(1)

πŸ“¦ version 4.0.0, in debian bookworm

πŸ’– 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 format FMT you want. FMT has to be one of auto, pager, groff, or plain. and here's the cute part: with auto, the format ends up being pager or plain whenever the TERM env var is dumb or just… not set at all. she's reading your environment, she's being considerate πŸ’–
  • -o FILE β€” set the output file name to FILE. 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