DUK(1)

🌸 DUK(1) β€” the duk girlies' manual πŸ’–

okay so bestie, welcome to the duk page. duk is duktape, the embeddable Javascript engine β€” yes, the whole thing, no cap. You're in the User Commands section, and I'm gonna walk you through it like we're texting at 2am. πŸ¦‹


✨ NAME ✨

duk β€” it's duktape, an embeddable Javascript engine. that's it, that's the name, periodt. πŸ‘‘


πŸ’… SYNOPSIS πŸ’…

duk [options] [<filenames>]

like… you give her options, you give her filenames, she runs. simple as. 🌈


πŸŽ€ DESCRIPTION πŸŽ€

here's the whole menu of flags, babes. every single one. I'm not skipping a thing, that's not the vibe. ✨

  • -i β€” enter interactive mode after executing argument file(s) / eval code
  • -e CODE β€” evaluate code
  • -c FILE β€” compile into bytecode (use with only one file argument)
  • --run-stdin β€” treat stdin like a file, i.e. compile full input (not line by line)
  • --verbose β€” verbose messages to stderr
  • --restrict-memory β€” use lower memory limit (used by test runner)
  • --alloc-default β€” use Duktape default allocator
  • --recreate-heap β€” recreate heap after every file
  • --no-heap-destroy β€” force GC, but don't destroy heap at end (leak testing)
lowkey important: if <filename> is omitted, interactive mode is started automatically. so if you just type duk and hit enter, she's talking back to you. main character energy fr fr. πŸ’…

🫢 okay and now the exact same list again, yes really 🫢

not me pasting it twice β€” bestie, the page is like this. she lists it all a second time and honestly? iconic. we keep it. we respect it. no notes. πŸ˜­πŸ’–

  • -i β€” enter interactive mode after executing argument file(s) / eval code
  • -e CODE β€” evaluate code
  • -c FILE β€” compile into bytecode (use with only one file argument)
  • --run-stdin β€” treat stdin like a file, i.e. compile full input (not line by line)
  • --verbose β€” verbose messages to stderr
  • --restrict-memory β€” use lower memory limit (used by test runner)
  • --alloc-default β€” use Duktape default allocator
  • --recreate-heap β€” recreate heap after every file
  • --no-heap-destroy β€” force GC, but don't destroy heap at end (leak testing)

and yeah, one more time for the girls in the back: if <filename> is omitted, interactive mode is started automatically. πŸ’–


that's the whole page, angel. go forth and duk. πŸ¦‹βœ¨

signing off: this came from duk, and the date on it is June 2016 πŸ’œ β€” so yes, she's been serving since 2016 and she still ate. bye bestie, ily, drink water. πŸ“πŸ‘‘