Options
All
  • Public
  • Public/Protected
  • All
Menu

Package yarnpkg-parsers

Type aliases

Resolution

Resolution: object

Type declaration

  • descriptor: object
    • Optional description?: undefined | string
    • fullName: string
  • Optional from?: undefined | object

Variables

Const LEGACY_REGEXP

LEGACY_REGEXP: RegExp = /^(#.*(\r?\n))*?#\s+yarn\s+lockfile\s+v1\r?\n/i

Const simpleStringPattern

simpleStringPattern: RegExp = /^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/

Const specialObjectKeys

specialObjectKeys: string[] = [`__metadata`, `version`, `resolution`, `dependencies`, `peerDependencies`, `dependenciesMeta`, `peerDependenciesMeta`, `binaries`]

Functions

parseResolution

parseShell

  • parseShell(source: string, options?: object): object[]
  • Parameters

    • source: string
    • Default value options: object = {isGlobPattern: () => false}
      • isGlobPattern: function
          • (arg: string): boolean
          • Parameters

            • arg: string

            Returns boolean

    Returns object[]

parseSyml

  • parseSyml(source: string): object

parseViaJsYaml

  • parseViaJsYaml(source: string): object

parseViaPeg

  • parseViaPeg(source: string): object

stringifyResolution

  • stringifyResolution(resolution: Resolution): string

stringifyString

  • stringifyString(value: string): string

stringifySyml

  • stringifySyml(value: any): string

stringifyValue

  • stringifyValue(value: any, indentLevel: number, newLineIfObject: boolean): string

Generated using TypeDoc