nu-check for strings> nu-check {flags} (path)
--as-module, -m: Parse content as module--debug, -d: Show error messages--all, -a: Parse content as script first, returns result if success, otherwise, try with modulepath: File path to parse| input | output | 
|---|---|
| list<any> | bool | 
| string | bool | 
Parse a input file as script(Default)
>nu-checkscript.nu
Parse a input file as module
>nu-check--as-modulemodule.nu
Parse a input file by showing error message
>nu-check-dscript.nu
Parse an external stream as script by showing error message
>openfoo.nu|nu-check-dscript.nu
Parse an internal stream as module by showing error message
>openmodule.nu|lines|nu-check-d--as-modulemodule.nu
Parse a string as script
>$'two(char nl)lines'|nu-check
Heuristically parse which begins with script first, if it sees a failure, try module afterwards
>nu-check-ascript.nu
Heuristically parse by showing error message
>openfoo.nu|lines|nu-check-ad
    Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
    https://www.nushell.sh/commands/docs/nu-check.html