@pnpm/fetcher-base
v1000.0.1
Published
Types for pnpm-compatible fetchers
Downloads
327,191
Readme
@pnpm/fetcher-base
Types for pnpm-compatible fetchers
Installation
pnpm 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 demoFetcher (
resolution: Resolution,
targetFolder: string,
opts: FetchOptions,
): Promise<FetchResult> {
// ...
return {
filesIndex,
tempLocation,
}
}
License
MIT