Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

pnpm/fetcher-base

Repository files navigation

this package was moved to https://github.com/pnpm/pnpm

@pnpm/fetcher-base

Types for pnpm-compatible fetchers

npm version Build Status

Installation

npm i -S @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