nodejsscript • Docs
nodejsscript / $ / exit
exit(
code
?, ...ignore
?):never
Just an alias for _exit. Any other argument is ignored, so you can use:
if($.hasArgs("-v", "--version")) $.exit(0, echo("v0.0.1"));
• code?: number
• ...ignore?: any
[]
never