2.0.2 • Published 12 months ago

@wowserhq/io v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

Wowser IO

Join community CI Status npm

An IO utility library for Wowser.

Usage

To install Wowser IO:

npm install @wowserhq/io

To use Wowser IO in an ES2015 module environment:

import * as io from '@wowserhq/io';

To use Wowser IO in a CommonJS module environment:

const io = require('@wowserhq/io');

Example

Wowser IO provides a set of types to work with numeric, array, string, struct, and tag-length-value data formats. Wowser's IO types permit reading and writing data.

import * as io from '@wowserhq/io';

const mver = io.struct({
  version: io.uint32le,
});

const rawData = new Uint8Array([0x10, 0x00, 0x00, 0x00]);
const readData = mver.read(rawData);

console.log(readData);
// { version: 16 }

License

Wowser IO is copyright © Wowser Contributors. It is licensed under the MIT license. See LICENSE for more information.

2.0.2

12 months ago

2.0.1

1 year ago

2.0.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago