Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ya-struct

k13-engineering15LGPL 2.10.0.5

Yet Another Node.js Structure API

structure, struct, abi, endian, alignment, c, c++, layout

readme

node-ya-struct

Yet Another Node.js Structure API

About

This module allows you to parse and format fixed C-like data structures. Mainly this can be used for native code interoperability, network communication or file formats. The goal is to support types and alignments similar to C structures with support for endianness.

API

TBD

Features

  • Basic Integer type support
  • Buffer referencing - buffers can be used as pointers, including garbage collection protection
  • Endianness support

Planned Features

  • Nested structures
  • Nested arrays
  • C strings as arrays
  • C strings as pointers
  • Basic C types
  • Bitfields
  • Unions
  • Field alignments