https://github.com/getkey/bombhopperio-level-tools
Library to check that a level file is valid
https://github.com/getkey/bombhopperio-level-tools
bombhopperio validate validation validator
Last synced: 8 months ago
JSON representation
Library to check that a level file is valid
- Host: GitHub
- URL: https://github.com/getkey/bombhopperio-level-tools
- Owner: getkey
- License: apache-2.0
- Created: 2020-05-26T20:03:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-20T23:05:47.000Z (over 1 year ago)
- Last Synced: 2025-09-29T05:44:04.083Z (9 months ago)
- Topics: bombhopperio, validate, validation, validator
- Language: TypeScript
- Size: 891 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
# BombHopper.io level tools

This library is used to validate levels. Maybe it will have more level-related features later, like upgrading from an old format version into a newer.
```sh
yarn add bombhopperio-level-tools
```
or
```sh
npm install bombhopperio-level-tools
```
## CLI tool
```sh
bombhopperio-level-tools validate file.json other_file.json as_many_files_as_you_want.json
```
## JS API
### validate(levelObject)
```js
import { validate } from 'bombhopperio-level-tools';
const formatVersionNumber = validate(myLevelObject); // throws an error if the file is invalid
```