uint8-encoding
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,3 +5,4 @@ { | ||
"description": "Uint8 encoding, a simple way to convert strings to Uint8Arrays and vice versa.", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
"version": "2.0.1", | ||
"type": "module", | ||
@@ -17,3 +18,3 @@ "main": "dist/index.js", | ||
"test:watch": "tsex test --watch", | ||
"prepublishOnly": "npm run clean && npm run compile && npm run test" | ||
"prepublishOnly": "tsex prepare" | ||
}, | ||
@@ -27,7 +28,7 @@ "keywords": [ | ||
"devDependencies": { | ||
"fast-check": "^2.24.0", | ||
"fava": "^0.0.6", | ||
"tsex": "^1.0.4", | ||
"typescript": "^4.6.3" | ||
"fast-check": "^3.23.2", | ||
"fava": "^0.3.4", | ||
"tsex": "^4.0.2", | ||
"typescript": "^5.7.3" | ||
} | ||
} |
@@ -5,4 +5,2 @@ # Uint8 Encoding | ||
## Features | ||
It's just a simple wrapper around TextEncoder and TextDecoder, but it provides a cleaner API and it handles nuances like the BOM character for you. | ||
@@ -13,3 +11,3 @@ | ||
```sh | ||
npm install --save uint8-encoding | ||
npm install uint8-encoding | ||
``` | ||
@@ -22,2 +20,4 @@ | ||
// Encoding | ||
const raw = 'Hello 😃'; | ||
@@ -27,2 +27,4 @@ const encoded = U8.encode ( raw ); | ||
// Decoding | ||
const decoded = U8.decode ( encoded ); | ||
@@ -29,0 +31,0 @@ console.log ( decoded ); // => 'Hello 😃' |
33
2970
5
20