# @xmcl/launch

> Minecraft launch function

Latest version **1.1.1** (published 2019-12-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @xmcl/launch
pnpm add @xmcl/launch
yarn add @xmcl/launch
bun add @xmcl/launch
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2019-12-30 |
| First published | 2019-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0 |
| Dependencies | 5 |
| Unpacked size | 69 KB |
| Known vulnerabilities | 0 (+2 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 220 |
| Author | cijhn@hotmail.com |
| Maintainers | ci010 |
| Keywords | minecraft, typescript, minecraft-launcher, nodejs, electron |

## Links

- npm: https://www.npmjs.com/package/@xmcl/launch
- Repository: https://github.com/Voxelum/minecraft-launcher-core-node
- Homepage: https://github.com/Voxelum/minecraft-launcher-core-node#readme
- Issues: https://github.com/Voxelum/minecraft-launcher-core-node/issues
- npm.io page: https://npm.io/package/@xmcl/launch

## Dependencies (5)

- [got](https://npm.io/package/got.md) ^9.6.0
- [uuid](https://npm.io/package/uuid.md) ^3.2.1
- [@xmcl/util](https://npm.io/package/@xmcl/util.md) ^1.0.5
- [@xmcl/unzip](https://npm.io/package/@xmcl/unzip.md) ^1.0.3
- [@xmcl/version](https://npm.io/package/@xmcl/version.md) ^1.0.5

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.1 (latest) — 2019-12-30
- 1.1.0 — 2019-12-10
- 1.0.4 — 2019-11-26
- 1.0.3 — 2019-11-25
- 1.0.2 — 2019-11-24
- 1.0.1 — 2019-11-24
- 1.0.0 — 2019-11-16
- 0.0.26 — 2019-10-23
- 0.0.25 — 2019-10-14
- 0.0.24 — 2019-10-05
- 0.0.23 — 2019-10-05
- 0.0.22 — 2019-09-21
- 0.0.21 — 2019-09-19
- 0.0.20 — 2019-09-15
- 0.0.19 — 2019-09-07
- … 18 more at https://npm.io/package/@xmcl/launch/versions

## README

# Launch Module

[![npm version](https://img.shields.io/npm/v/@xmcl/launch.svg)](https://www.npmjs.com/package/@xmcl/launch)
[![npm](https://img.shields.io/npm/l/@xmcl/minecraft-launcher-core.svg)](https://github.com/voxelum/minecraft-launcher-core-node/blob/master/LICENSE)
[![Build Status](https://github.com/voxelum/minecraft-launcher-core-node/workflows/Release%20Pre-Check/badge.svg)](https://github.com/voxelum/minecraft-launcher-core-node/workflows/Release%20Pre-Check/badge.svg)

This is a sub-module belong to [minecraft-launcher-core](https://www.npmjs.com/package/@xmcl/minecraft-launcher-core) module. You can still use this individually.

### Launch

Launch minecraft from a version:

```ts
    import { Launcher } from "@xmcl/launch"
    const version: string; // full version id, like 1.13, or your forge version like, 1.13-forge-<someForgeVersion>
    const javaPath: string; // java executable path
    const gamePath: string; // .minecraft path
    const proc: Promise<ChildProcess> = Launcher.launch({ gamePath, javaPath, version });
```

Detach from the parent process. So your launcher's exit/crash won't affact the Minecraft running.

```ts
    const proc: Promise<ChildProcess> = Launcher.launch({ gamePath, javaPath, version, extraExecOption: { detached: true } });
```

---
_Source: https://npm.io/package/@xmcl/launch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
