npm

package
v0.1.113 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package npm downloads pinned npm packages into the user cache: the TypeScript checker, the runtime the TypeScript library imports, and the bundler that builds a release.

Index

Constants

View Source
const TsgoVersion = "7.0.0-dev.20260707.2"

TsgoVersion is the TypeScript native preview that checks script mods and declares the library.

Variables

This section is empty.

Functions

func Modules added in v0.1.52

func Modules(ctx context.Context, packages map[string]string) (string, error)

Modules returns a directory whose node_modules holds each of packages, a name to version map, so the packages resolve one another as an npm install lays them out. It installs no dependencies packages leaves out.

func Package

func Package(ctx context.Context, name, version string) (string, error)

Package returns the directory holding the npm package name at version, downloading it from the registry into the user cache the first time.

func Tsgo

func Tsgo(ctx context.Context) (string, error)

Tsgo returns the TypeScript checker for this system.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL