New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uint8-encoding

Package Overview
Dependencies
Maintainers
0
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uint8-encoding - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

13

package.json

@@ -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 😃'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc