[API reference](https://jsprismarine.dev/api/index.md) / [@jsprismarine/native-worldgen](https://jsprismarine.dev/api/@jsprismarine/native-worldgen/index.md) / install

# install

## Functions

### installBuild()

> **installBuild**(`options`): `Promise`\<[`InstallOutcome`](https://jsprismarine.dev/api/@jsprismarine/native-library/NativeLibrary/index.md#installoutcome)\>

Defined in: [install.ts:11](https://github.com/JSPrismarine/JSPrismarine/blob/9db8dc5e83d04708d63ff9d73cae14f6c6b880f6/packages/native-worldgen/src/install.ts#L11)

Downloads the build for this machine into the package, once, and checks its SHA-256 against
the manifest. It is what the package's `postinstall` runs; loading the library never downloads.

#### Parameters

##### options

[`InstallOptions`](https://jsprismarine.dev/api/@jsprismarine/native-library/NativeLibrary/index.md#installoptions)

The package and, for tests, the platform, environment and network.

#### Returns

`Promise`\<[`InstallOutcome`](https://jsprismarine.dev/api/@jsprismarine/native-library/NativeLibrary/index.md#installoutcome)\>

What it did.
