byte-encoder
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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)) |
{ | ||
"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", |
@@ -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 } | ||
``` |
@@ -41,4 +41,2 @@ | ||
encodeToBuffer (string: string): ArrayBufferLike | ||
encode (string: string): ByteView | ||
@@ -45,0 +43,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9684
207
80