@yarnpkg/parsers
Index
Functions
- parseResolution
- parseShell
- parseSyml
- stringifyArgument
- stringifyArgumentSegment
- stringifyArithmeticExpression
- stringifyCommand
- stringifyCommandChain
- stringifyCommandChainThen
- stringifyCommandLine
- stringifyCommandLineThen
- stringifyEnvSegment
- stringifyRedirectArgument
- stringifyResolution
- stringifyShell
- stringifySyml
- stringifyValueArgument
References
Type Aliases
Functions
parseResolution
Parameters
source: string
Returns Resolution
parseShell
Parameters
source: string
options: { isGlobPattern: (arg: string) => boolean } = ...
Returns ShellLine
parseSyml
Parameters
source: string
Returns {}
[key string]: any
stringifyArgument
Parameters
argument: Argument
Returns string
stringifyArgumentSegment
Parameters
argumentSegment: ArgumentSegment
Returns string
stringifyArithmeticExpression
Parameters
argument: ArithmeticExpression
Returns string
stringifyCommand
Parameters
command: Command
Returns string
stringifyCommandChain
Parameters
commandChain: CommandChain
Returns string
stringifyCommandChainThen
Parameters
commandChainThen: CommandChainThen
Returns string
stringifyCommandLine
Parameters
commandLine: CommandLine
Returns string
stringifyCommandLineThen
Parameters
commandLineThen: CommandLineThen
Returns string
stringifyEnvSegment
Parameters
envSegment: EnvSegment
Returns string
stringifyRedirectArgument
Parameters
argument: RedirectArgument
Returns string
stringifyResolution
Parameters
resolution: Resolution
Returns string
stringifyShell
Parameters
shellLine: ShellLine
__namedParameters: { endSemicolon?: boolean } = {}
Returns string
stringifySyml
Parameters
value: any
Returns string
PreserveOrdering
stringifyValueArgument
Parameters
argument: { segments: ArgumentSegment[]; type: argument }
Returns string
References
stringifyShellLine
Renames and re-exports stringifyShell
Type Aliases
Argument
ArgumentSegment
ArithmeticExpression
ArithmeticPrimary
CommandChain
CommandLine
Type declaration
chain: CommandChain
optionalthen?: CommandLineThen
EnvSegment
Type declaration
args: [] | [ValueArgument]
name: string
Resolution
Type declaration
descriptor: { description?: string; fullName: string }
optionaldescription?: string
fullName: string
optionalfrom?: { description?: string; fullName: string }
optionaldescription?: string
fullName: string