diff --git a/index.js b/index.js new file mode 100644 index 0000000..2bfa25b --- /dev/null +++ b/index.js @@ -0,0 +1,18 @@ +/** + * index.js + * + * Licensed under the MIT License + * + * Copyright(c) 2020 Google Inc. + */ + +export { + UnarchiveEvent, UnarchiveEventType, UnarchiveInfoEvent, UnarchiveErrorEvent, + UnarchiveStartEvent, UnarchiveFinishEvent, UnarchiveProgressEvent, UnarchiveExtractEvent, + Unarchiver, Unzipper, Unrarrer, Untarrer, getUnarchiver +} from './archive/archive.js'; +export { findMimeType } from './file/sniffer.js'; +export { convertWebPtoPNG, convertWebPtoJPG } from './image/webp-shim/webp-shim.js'; +export { BitStream } from './io/bitstream.js'; +export { ByteBuffer } from './io/bytebuffer.js'; +export { ByteStream } from './io/bytestream.js'; diff --git a/package.json b/package.json new file mode 100644 index 0000000..9bd1f99 --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "@codedread/bitjs", + "version": "0.1.0", + "description": "Binary Tools for JavaScript", + "homepage": "https://github.com/codedread/bitjs", + "author": "Jeff Schiller", + "license": "MIT", + "keywords": [ + "binary", + "javascript", + "archive", + "pkzip", + "zip", + "rar", + "tar", + "unzip", + "unrar", + "untar" + ], + "main": "./index.js", + "type": "module", + "exports": "./index.js", + "repository": { + "type": "git", + "url": "https://github.com/codedread/bitjs" + } +} \ No newline at end of file