Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/pull-utf8-decoder
https://github.com/jacobbubu/pull-utf8-decoder
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jacobbubu/pull-utf8-decoder
- Owner: jacobbubu
- License: mit
- Created: 2020-01-27T08:18:27.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T12:12:59.000Z (about 2 years ago)
- Last Synced: 2025-01-05T22:03:22.063Z (22 days ago)
- Language: TypeScript
- Homepage:
- Size: 2.14 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
Awesome Lists containing this project
README
# @jacobbubu/pull-utf8-decoder
[![Build Status](https://travis-ci.org/jacobbubu/pull-utf8-decoder.svg)](https://travis-ci.org/jacobbubu/pull-utf8-decoder)
[![Coverage Status](https://coveralls.io/repos/github/jacobbubu/pull-utf8-decoder/badge.svg)](https://coveralls.io/github/jacobbubu/pull-utf8-decoder)
[![npm](https://img.shields.io/npm/v/@jacobbubu/pull-utf8-decoder.svg)](https://www.npmjs.com/package/@jacobbubu/pull-utf8-decoder/)> Rewite [pull-utf8-decoder](https://github.com/pull-stream/pull-utf8-decoder) in TypeScript.
## Usage
```bash
npm i @jacobbubu/pull-utf8-decoder
``````ts
pull(
// '¢' = [0xc2, 0xa2] in utf8
pull.values([Buffer.from([0xc2], Buffer.from([0xa2]])),
decode('utf8'),
pull.collect(function(_, ary) {
console.log(ary) // ['¢']
})
)
```