Socket
Socket
Sign inDemoInstall

kaitai-struct-loader

Package Overview
Dependencies
6
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kaitai-struct-loader

This [webpack loader](https://webpack.js.org/concepts/loaders/) adds support for [Kaitai Struct](https://kaitai.io) .ksy definitions.


Version published
Maintainers
4
Install size
5.42 MB
Created

Readme

Source

Kaitai Struct loader for webpack

This webpack loader adds support for Kaitai Struct .ksy definitions.

Installation

yarn add --dev kaitai-struct-loader

Usage

file.js

import KaitaiStream from 'kaitai-struct/KaitaiStream';
import DoomWAD from './game/doom_wad.ksy';

const stream = new KaitaiStream(arrayBuffer);
const data = new DoomWAD(stream);

The specification of the Doom .wad format can be found in the format gallery.

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.ksy$/,
        use: [{
          loader: 'kaitai-struct-loader',
          // options: { debug: true },
        }],
      },
    ]
  }
}

Options

NameTypeDefaultDescription
debug{boolean}falseCompile .ksy files in --debug mode
(see #332 for more info)

Keywords

FAQs

Last updated on 17 Nov 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc