# @xmcl/version

> Minecraft version parsing

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

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-12-30 |
| First published | 2019-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0 |
| Dependencies | 1 |
| Unpacked size | 79.4 KB |
| Known vulnerabilities | 0 |
| 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/version
- 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/version

## Dependencies (1)

- [@xmcl/util](https://npm.io/package/@xmcl/util.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.0.5 (latest) — 2019-12-30
- 1.0.4 — 2019-12-10
- 1.0.3 — 2019-11-26
- 1.0.2 — 2019-11-25
- 1.0.1 — 2019-11-24
- 1.0.0 — 2019-11-16
- 0.1.8 — 2019-11-05
- 0.1.7 — 2019-10-27
- 0.1.6 — 2019-10-23
- 0.1.5 — 2019-10-14
- 0.1.4 — 2019-10-05
- 0.1.3 — 2019-10-04
- 0.1.2 — 2019-09-21
- 0.1.1 — 2019-09-15
- 0.1.0 — 2019-09-07
- … 11 more at https://npm.io/package/@xmcl/version/versions

## README

# Version Module

[![npm version](https://img.shields.io/npm/v/@xmcl/version.svg)](https://www.npmjs.com/package/@xmcl/version)
[![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.

## Usage

### Minecraft Version Parsing

Parse minecraft version as a resolved version, which is used for launching process. You can also read version info from it if you want.

```ts
    import { Versoin } from "@xmcl/version";
    const minecraftLocation: string;
    const minecraftVersionId: string;

    const resolvedVersion: ResolvedVersion = await Version.parse(minecraftLocation, minecraftVersionId);
```

Get the report of the version. It can also check if the version is missing assets/libraries.

```ts
    import { Versoin, VersionDiagnosis } from "@xmcl/version";
    const minecraftLocation: string;
    const minecraftVersionId: string;

    const report: VersionDiagnosis = await Version.diagnose(minecraftLocation, minecraftVersionId);
```

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