Socket
Socket
Sign inDemoInstall

@pnpm/fetcher-base

Package Overview
Dependencies
5
Maintainers
2
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pnpm/fetcher-base

Types for pnpm-compatible fetchers


Version published
Weekly downloads
80K
decreased by-17.07%
Maintainers
2
Install size
2.04 MB
Created
Weekly downloads
 

Readme

Source

@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

Keywords

FAQs

Last updated on 09 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc