byte-encoder
Advanced tools
+0
-4
@@ -166,6 +166,2 @@ | ||
| encodeToBuffer (string = '') { | ||
| return new ByteView(new ByteEncoderIterator(string)).buffer | ||
| } | ||
| encode (string = '') { | ||
@@ -172,0 +168,0 @@ return new ByteView(new ByteEncoderIterator(string)) |
+1
-1
| { | ||
| "name": "byte-encoder", | ||
| "version": "1.0.2", | ||
| "version": "1.0.3", | ||
| "description": "Encode data to utf8 bytes. Browser or NodeJS.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+0
-14
@@ -80,15 +80,1 @@ | ||
| ``` | ||
| ### (method) `ByteEncoder.encodeToBuffer`: | ||
| Args [`string: string`] | ||
| ```js | ||
| import ByteEncoder from 'byte-encoder' | ||
| const byteEncoder = new ByteEncoder() | ||
| console.log(byteEncoder.encodeToBuffer('Hello World!')) | ||
| // prints: ArrayBuffer { [Uint8Contents]: <48 65 6c 6c 6f 20 57 6f 72 6c 64 21>, byteLength: 12 } | ||
| ``` |
+0
-2
@@ -41,4 +41,2 @@ | ||
| encodeToBuffer (string: string): ArrayBufferLike | ||
| encode (string: string): ByteView | ||
@@ -45,0 +43,0 @@ |
9684
-4.6%207
-1.9%80
-13.98%