Volt.NPM (Volt v0.17.9)

Copy Markdown View Source

Installs exact npm package sets into Volt's isolated, npm_ex-backed cache.

Frameworks and plugins can use this API for JavaScript dependencies they own without adding those packages to an application's node_modules directory. The returned directory is stable for the normalized package set and can be passed to Volt.Builder as a package directory or scoped package root.

Summary

Functions

Install a package map and return its isolated cache directories.

Types

install_result()

@type install_result() :: %{install_dir: String.t(), node_modules: String.t()}

Functions

install!(packages, opts \\ [])

@spec install!(
  %{required(String.t()) => String.t()},
  keyword()
) :: install_result()

Install a package map and return its isolated cache directories.