Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 447 Bytes

File metadata and controls

24 lines (14 loc) · 447 Bytes

nodejsscriptDocs


nodejsscript / $ / exit

Function: 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"));

Parameters

code?: number

• ...ignore?: any[]

Returns

never