Table of Contents

Class EsbuildBinary

Namespace
Nite.Esbuild
Assembly
Nite.dll

Finds or downloads the platform's esbuild binary. It comes from the same npm package (@esbuild/linux-x64 and friends) that esbuild's own installer uses, verified against the registry's integrity hash and cached per user.

public static class EsbuildBinary
Inheritance
EsbuildBinary
Inherited Members

Fields

Version

The esbuild version this build of Nite speaks the service protocol of.

public const string Version = "0.28.2"

Field Value

string

Methods

EnsureAsync(HttpClient, RegistrySettings?, CancellationToken)

public static Task<string> EnsureAsync(HttpClient http, RegistrySettings? registry = null, CancellationToken cancellationToken = default)

Parameters

http HttpClient
registry RegistrySettings
cancellationToken CancellationToken

Returns

Task<string>