kasten-js 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -6
- package/dist/index.cjs +844 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +44 -6
- package/dist/index.js +824 -1
- package/dist/index.js.map +1 -0
- package/package.json +34 -34
package/README.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Kasten
|
|
2
2
|
|
|
3
|
-
TypeScript
|
|
3
|
+
TypeScript toolbox for encoding, decoding, and compression algorithms with no dependencies.
|
|
4
|
+
|
|
5
|
+
> This library is currently in development.
|
|
6
|
+
>
|
|
7
|
+
> The API can be changed in future release.
|
|
4
8
|
|
|
5
9
|
## Features
|
|
6
10
|
|
|
@@ -13,12 +17,14 @@ TypeScript Toolbox of Codecs and Cryptographies.
|
|
|
13
17
|
- RFC4648 (Hex)
|
|
14
18
|
- Base 16 Encoding/Decoding
|
|
15
19
|
- RFC4648
|
|
20
|
+
- (WIP)AsciiHexDecode (PDF1.7)
|
|
16
21
|
- Base 85
|
|
17
|
-
-
|
|
22
|
+
- (WIP)Ascii85Decode (PDF1.7)
|
|
18
23
|
- Run-Length Encoding/Decoding
|
|
19
24
|
- Basic
|
|
20
25
|
- PackBits
|
|
21
|
-
-
|
|
26
|
+
- RunLengthDecode (PDF1.7)
|
|
27
|
+
- (WIP)LZ77 Encoding/Decoding
|
|
22
28
|
|
|
23
29
|
## Usage
|
|
24
30
|
|
|
@@ -39,13 +45,14 @@ All codecs available in Kasten are below.
|
|
|
39
45
|
|Group|Spec|Method|Category|Summary|
|
|
40
46
|
|:-|:-|:-|:-|:-|
|
|
41
47
|
|Base 64|RFC2045|`base64`|`rfc2045`|The old Base 64 specification.|
|
|
42
|
-
|Base 64|RFC4648|`base64`|`rfc4648`|The latest Base 64 specification
|
|
43
|
-
|Base 64|RFC4648(URL)|`base64`|`rfc4648-url`|The latest Base 64 specification for URL safe encoding
|
|
48
|
+
|Base 64|RFC4648|`base64`|`rfc4648`|The latest Base 64 specification. It is compatible with `Uint8Array.prototype.toBase64`.|
|
|
49
|
+
|Base 64|RFC4648(URL)|`base64`|`rfc4648-url`|The latest Base 64 specification for URL safe encoding. It is compatible with `Uint8Array.prototype.toBase64`.|
|
|
44
50
|
|Base 32|RFC4648|`base32`|`rfc4648`|The latest Base 32 specification.|
|
|
45
51
|
|Base 32|RFC4648 (HEX)|`base32`|`rfc4648-hex`|The latest Base 32 specification for hexadecimal encoding.|
|
|
46
52
|
|Base 16|RFC4648|`base16`|`rfc4648`|The latest Base 16 specification.|
|
|
47
53
|
|Run-Length|Basic|`runLength`|`basic`|The basic and old Run-Length encoding.|
|
|
48
|
-
|Run-Length|
|
|
54
|
+
|Run-Length|PackBits|`runLength`|`pack-bits`|The old Run-Length encoding accepted by [MacPrint of Apple](https://web.archive.org/web/20080705155158/http://developer.apple.com/technotes/tn/tn1023.html).|
|
|
55
|
+
|Run-Length|RunLengthDecode (PDF1.7)|`runLength`|`pdf`|The Run-Length specofication of [PDF1.7](https://opensource.adobe.com/dc-acrobat-sdk-docs/pdfstandards/PDF32000_2008.pdf).|
|
|
49
56
|
|
|
50
57
|
## License
|
|
51
58
|
|