Skip to main content
Module

x/npm_fetcher/mod.ts>FetchedNpmPackageData

Fetches npm packages and writes them to disk
Latest
interface FetchedNpmPackageData
import { type FetchedNpmPackageData } from "https://deno.land/x/npm_fetcher@v0.1.0/mod.ts";

Properties

packageName: string

The name of the package as returned by the npm registry api

version: string

The version of the package as returned by the npm registry api

registryData: NpmPackage

The raw registry data as returned by the npm registry api. The types of this object are incomplete, but this value contains the full json data from the registry.

Methods

getPackageContents(): AsyncGenerator<TarEntry>

Starts downloading the contents of the package.