@pnpm/fetcher-base
TypeScript icon, indicating that this package has built-in type declarations

15.0.7 • Public • Published

@pnpm/fetcher-base

Types for pnpm-compatible fetchers

npm version

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

/@pnpm/fetcher-base/

    Package Sidebar

    Install

    npm i @pnpm/fetcher-base

    Weekly Downloads

    84,663

    Version

    15.0.7

    License

    MIT

    Unpacked Size

    5.29 kB

    Total Files

    6

    Last publish

    Collaborators

    • pnpmuser
    • zkochan