-
Notifications
You must be signed in to change notification settings - Fork 41
/
main.js
29 lines (29 loc) · 1.14 KB
/
main.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
if (typeof define !== 'function') { var define = require('amdefine')(module); }
define(['./lib/freeze','./lib/BitStream','./lib/Stream','./lib/BWT','./lib/Context1Model','./lib/DefSumModel','./lib/FenwickModel','./lib/MTFModel','./lib/NoModel','./lib/Huffman','./lib/RangeCoder','./lib/BWTC','./lib/Bzip2','./lib/Dmc','./lib/Lzjb','./lib/LzjbR','./lib/Lzp3','./lib/PPM','./lib/Simple'], function(freeze,BitStream,Stream,BWT,Context1Model,DefSumModel,FenwickModel,MTFModel,NoModel,Huffman,RangeCoder,BWTC,Bzip2,Dmc,Lzjb,LzjbR,Lzp3,PPM,Simple) {
'use strict';
return freeze({
version: "0.0.1",
// APIs
BitStream: BitStream,
Stream: Stream,
// transforms
BWT: BWT,
// models and coder
Context1Model: Context1Model,
DefSumModel: DefSumModel,
FenwickModel: FenwickModel,
MTFModel: MTFModel,
NoModel: NoModel,
Huffman: Huffman,
RangeCoder: RangeCoder,
// compression methods
BWTC: BWTC,
Bzip2: Bzip2,
Dmc: Dmc,
Lzjb: Lzjb,
LzjbR: LzjbR,
Lzp3: Lzp3,
PPM: PPM,
Simple: Simple
});
});