Options
All
  • Public
  • Public/Protected
  • All
Menu

Package plugin-file

@yarnpkg/plugin-file

This plugin adds support for the file: protocol.

Install

This plugin is included by default in Yarn.

Variables

Const CACHE_VERSION

CACHE_VERSION: 2 = 2

Const FILE_REGEXP

FILE_REGEXP: RegExp = /^(?:[a-zA-Z]:[\\/]|\.{0,2}\/)/

Const PROTOCOL

PROTOCOL: "file:" = `file:`

Const TARBALL_REGEXP

TARBALL_REGEXP: RegExp = /^[^?]*\.(?:tar\.gz|tgz)(?:::.*)?$/

Functions

makeArchiveFromLocator

  • makeArchiveFromLocator(locator: Locator, __namedParameters: object): Promise<ZipFS>

makeBufferFromLocator

  • makeBufferFromLocator(locator: Locator, __namedParameters: object): Promise<Buffer>

makeLocator

  • makeLocator(ident: Ident, __namedParameters: object): Locator

makeSpec

  • makeSpec(__namedParameters: object): string

parseSpec

  • parseSpec(spec: string): object

Object literals

Const plugin

plugin: object

fetchers

fetchers: (TarballFileFetcher | FileFetcher)[] = [TarballFileFetcher,FileFetcher,]

resolvers

resolvers: TarballFileResolver[] = [TarballFileResolver,FileResolver,]

Generated using TypeDoc