-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
35 lines (28 loc) · 948 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
// ernie.js
// Copyright (c) 2017 Daniel Münch (@dmunch)
// Based on previous work
// BERT-JS
// Copyright (c) 2009 Rusty Klophaus (@rklophaus)
// Contributions by Ben Browning (@bbrowning)
// See MIT-LICENSE for licensing information.
// BERT-JS is a Javascript implementation of Binary Erlang Term Serialization.
// - http://github.com/rklophaus/BERT-JS
//
// References:
// - http://www.erlang-factory.com/upload/presentations/36/tom_preston_werner_erlectricity.pdf
// - http://www.erlang.org/doc/apps/erts/erl_ext_dist.html#8
let _Encoder = require('./Encoder.js');
let _StreamingDecoder = require('./StreamingDecoder.js');
let _Decoder = require('./Decoder.js');
let Encoder = _Encoder.Encoder;
let BertTuple = _Encoder.BertTuple;
let BertAtom = _Encoder.BertAtom;
let Decoder = _Decoder.Decoder;
let StreamingDecoder = _StreamingDecoder.Decoder;
module.exports = {
Encoder,
BertTuple,
BertAtom,
Decoder,
StreamingDecoder
}