nox v0.3.2 Nox.Env View Source

Environment of node installation

If new/1 is called with shared: true, directory is built from a hash of (parsed) versions and thus, will be shared between all envs using these versions.

Link to this section Summary

Functions

Creates default env

Creates new env

Link to this section Types

Link to this type option() View Source
option() ::
  {:dir, Path.t()}
  | {:shared, boolean()}
  | {:node, String.t()}
  | {:nvm, String.t()}
  | {:npm, String.t()}
Link to this type options() View Source
options() :: [option()]
Link to this type t() View Source
t() :: %Nox.Env{dir: term(), versions: term()}

Link to this section Functions

Link to this function default() View Source
default() :: t()

Creates default env

Link to this function new(options \\ []) View Source
new(options()) :: t()

Creates new env