-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.js
37 lines (35 loc) · 972 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* eslint-disable object-property-newline */
const parse = require('./src/parser.js');
const encode = require('./src/encoder.js');
const template = require('./src/struct_builder.js');
const {
binary, bcd,
bitMask,
bitStruct, bitFlag, bitInt, bitUInt, bitEnum, bitBitMask,
enumeration,
float, double,
int, int8, int16, int32,
magic,
binString, asciiInteger, asciiFloat,
uint, uint8, uint16, uint32,
loop,
selector,
crc, crc32, crc24, crc16, crc16CCITT, crc16Modbus, crc16Kermit, crc16XModem, crc8, crc81Wire, crc8XOR,
delimString,
} = require('./src/types');
module.exports = {
parse, encode, template,
binary, bcd,
bitMask,
bitStruct, bitFlag, bitInt, bitUInt, bitEnum, bitBitMask,
enumeration,
float, double,
int, int8, int16, int32,
magic,
binString, asciiInteger, asciiFloat,
uint, uint8, uint16, uint32,
loop,
selector,
crc, crc32, crc24, crc16, crc16CCITT, crc16Modbus, crc16Kermit, crc16XModem, crc8, crc81Wire, crc8XOR,
delimString,
};