https://github.com/xtao-org/utf8x2x
Simple functions to convert between streams of UTF-8 bytes and UTF-8 code points.
https://github.com/xtao-org/utf8x2x
Last synced: 3 months ago
JSON representation
Simple functions to convert between streams of UTF-8 bytes and UTF-8 code points.
- Host: GitHub
- URL: https://github.com/xtao-org/utf8x2x
- Owner: xtao-org
- License: mit
- Created: 2022-01-19T17:52:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-20T22:02:49.000Z (over 1 year ago)
- Last Synced: 2025-01-12T07:46:35.960Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Utf8x2x
Simple functions to convert between a streams of UTF-8 bytes and UTF-8 code points.
`Utf8b2c` converts bytes to code points, one byte at a time, taking in one byte at a time, emitting one code point at a time.
`Utf8bs2c` converts bytes to code points, taking in multiple bytes at a time, emitting one code point at a time.
`Utf8c2b` converts code points to bytes, taking in one code point at a time, emitting one byte at a time.
`Utf8c2bs` converts code points to bytes, taking in one code point at a time, emitting multiple bytes at a time.
# Installation
## Deno and browser
```js
import {Utf8bs2c} from 'https://cdn.jsdelivr.net/gh/xtao-org/[email protected]/mod.js'
```## Node.js
```
npm install xtao-org/utf8x2x#semver:0.2.3
```***
© 2023 Darius J Chuck