Files
pnpm/packages/fetcher-base
Zoltan Kochan 889f71481e feat: drop Node.js 8 support
BREAKING CHANGE:

at least Node.js 10 is  required for pnpm to run

PR #2044
2019-10-05 20:47:04 +03:00
..
2019-05-31 01:27:18 +03:00
2019-10-05 20:47:04 +03: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