vlt / docs

  • PricingBenchmarks (opens in new window)Community (opens in new window)Feedback
  • Overview
    • Overview
    • Reference
  • Classes
  • XDG
  • Type Aliases
  • PathType
  1. Client
  2. /
  3. API Reference
  4. /
  5. @vltpkg/xdg
  6. /
  7. Reference

Reference

Classes

XDG

Defined in: index.ts:76

Constructors

new XDG()
TypeScript
new XDG(name): XDG

Defined in: index.ts:85

Parameters
ParameterType
namestring
Returns

XDG

Properties

PropertyType
baseobject
base.cachestring
base.configstring
base.datastring
base.runtimestring
base.statestring
namestring

Methods

cache()
TypeScript
cache(p): string

Defined in: index.ts:91

Parameters
ParameterTypeDefault value
pstring''
Returns

string

config()
TypeScript
config(p): string

Defined in: index.ts:88

Parameters
ParameterTypeDefault value
pstring''
Returns

string

data()
TypeScript
data(p): string

Defined in: index.ts:94

Parameters
ParameterTypeDefault value
pstring''
Returns

string

runtime()
TypeScript
runtime(p): string

Defined in: index.ts:100

Parameters
ParameterTypeDefault value
pstring''
Returns

string

state()
TypeScript
state(p): string

Defined in: index.ts:97

Parameters
ParameterTypeDefault value
pstring''
Returns

string

Type Aliases

PathType

TypeScript
type PathType = "cache" | "config" | "data" | "runtime" | "state";

Defined in: index.ts:7


Previous@vltpkg/xdg

On this page

  • Classes
  • XDG
  • Type Aliases
  • PathType

Deploy your package on vlt.io

Publish scoped and private packages, manage organizations and access, and give every developer and CI environment a consistent source for public and private JavaScript dependencies.

Publish now