Skip to content

DCsunset/hex-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

const { HexEncoder, HexDecoder } = require('hex-stream');
const fs = require('fs');
const fsStream = fs.createWriteStream('./data.txt');

process.stdin
	.pipe(new HexEncoder())
	.pipe(fsStream);

About

Simple hex encoder and decoder stream in node.js

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published