Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcsunset/hex-stream
Simple hex encoder and decoder stream in node.js
https://github.com/dcsunset/hex-stream
decoder encoder hex nodejs stream
Last synced: 3 days ago
JSON representation
Simple hex encoder and decoder stream in node.js
- Host: GitHub
- URL: https://github.com/dcsunset/hex-stream
- Owner: DCsunset
- License: mit
- Created: 2020-06-03T14:39:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T15:35:55.000Z (over 4 years ago)
- Last Synced: 2024-12-09T03:24:40.362Z (25 days ago)
- Topics: decoder, encoder, hex, nodejs, stream
- Language: JavaScript
- Size: 5.86 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hex-stream
Simple hex encoder and decoder stream in node.js
## Install
```
npm install hex-stream
```## Usage
A simple demo to convert input from stdin to hex encoded string in `data.txt`:
```js
const { HexEncoder, HexDecoder } = require('hex-stream');
const fs = require('fs');
const fsStream = fs.createWriteStream('./data.txt');process.stdin
.pipe(new HexEncoder())
.pipe(fsStream);
```