Skip to content

Latest commit

 

History

History
executable file
·
29 lines (23 loc) · 812 Bytes

readme.md

File metadata and controls

executable file
·
29 lines (23 loc) · 812 Bytes

CodecUtils

This package is a toolkit composed of static functions to help reading and writing binary formats.

Install

$ npm install --save codecutils

Use

The name codecutils is the name of the package, while CodecUtils is the name of the class that contains static methods.
Read the documetation to know about the static methods available.

In a browser

In the browser, you cqn use the version bundled in the dist directory.

Somewhere in your head:

<script src="./path/to/codecutils.js"></script>

Somewhere within <script>...</script> markups:

var isMachineLittleEndian = codecutils.CodecUtils.isPlatformLittleEndian()

In a Rollup project

import { CodecUtils } from 'codecutils';