Files
pnpm/packages/fetcher-base
Zoltan Kochan 97b986fbc8 feat: Node.js v10 is not supported anymore (#3121)
* feat: Node.js v10 is not supported anymore

BREAKING CHANGE:
2021-02-04 03:54:58 +02:00
..
2021-01-23 17:33:52 +02:00
2019-05-07 02:10:06 +03:00

@pnpm/fetcher-base

Types for pnpm-compatible fetchers

npm version

Installation

<pnpm|npm|yarn> add @pnpm/fetcher-base

Usage

Here's a template for a fetcher using types from @pnpm/fetcher-base:

import {Resolution} from '@pnpm/resolver-base'
import {
  FetchOptions,
  FetchResult,
} from '@pnpm/fetcher-base'

export async function (
  resolution: Resolution,
  targetFolder: string,
  opts: FetchOptions,
): Promise<FetchResult>
  // ...
  return {
    filesIndex,
    tempLocation,
  }
}

License

MIT © Zoltan Kochan