Skip to content

Interface: BinOptions

Options for ensure.

optional autoUnpackage?: boolean


optional destination?: BinContext

Exact installation paths. Omission keeps $HOME/.<name>/bin/<name>.


optional force?: boolean

Reinstall even when the destination already passes validation.


optional homeDir?: string


optional minVersion?: string

Minimum accepted numeric version, with one to three components.


optional package?: BinPackageOptions

Preserve an unpacked multi-file package rooted at BinContext.root.


optional selector?: BinSelector


optional skipVersionCheck?: boolean

Skip --version and treat an executable file as acceptable.


optional versionArgument?: string

Argument passed to the binary for version detection. Defaults to --version.


optional versionParser?: BinVersionParser

Version output parser. Defaults to parseVersion.