Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kaitai-io/kaitai_struct_javascript_runtime

Kaitai Struct: runtime for JavaScript
https://github.com/kaitai-io/kaitai_struct_javascript_runtime

javascript kaitai-struct

Last synced: 10 days ago
JSON representation

Kaitai Struct: runtime for JavaScript

Awesome Lists containing this project

README

        

# Kaitai Struct: runtime library for JavaScript

[![npm@latest](https://img.shields.io/npm/v/kaitai-struct/latest)](https://www.npmjs.com/package/kaitai-struct/v/latest)
[![npm@next](https://img.shields.io/npm/v/kaitai-struct/next)](https://www.npmjs.com/package/kaitai-struct/v/next)
[![downloads](https://img.shields.io/npm/dw/kaitai-struct)](https://www.npmtrends.com/kaitai-struct)

This library implements Kaitai Struct API for JavaScript.

Kaitai Struct is a declarative language used for describe various binary
data structures, laid out in files or in memory: i.e. binary file
formats, network stream packet formats, etc.

Further reading:

* [About Kaitai Struct](http://kaitai.io/)
* [About API implemented in this library](http://doc.kaitai.io/stream_api.html)
* [JavaScript-specific notes](http://doc.kaitai.io/lang_javascript.html) - also includes Quick start guide

## Development

After cloning this repository, you must run these commands to compile the
TypeScript source file [`KaitaiStream.ts`](./KaitaiStream.ts) into the
`KaitaiStream.js` file (ignored by Git) with JavaScript code:

```shell
npm install
npm run build
```

`npm run build` also needs to be run after each change to
[`KaitaiStream.ts`](./KaitaiStream.ts).

## Licensing

Copyright 2012-2016 Ilmari Heikkinen\
Copyright 2016-2024 Kaitai Project

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.