allanbreyes / zero-width-encoding-cli

CLI to encode/decode zero-width character messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zero-width-encoding-cli (zwe)

npm version

A Node.js command-line application (zwe) to encode and decode messages with zero-width characters. Built off of umpox/zero-width-detection

Installation

# Install with npm
npm install -g zero-width-encoding-cli

# Install with yarn
yarn global add zero-width-encoding-cli

Usage

Use the -e flag to encode a message.

# Linux
zwe -e "hello world" | xclip -selection c

# macOS
zwe -e "hello world" | pbcopy

Use the -d flag to decode a message.

zwe -d "‌​​‌​‌‌‌‍‌​​‌‌​‌​‍‌​​‌​​‌‌‍‌​​‌​​‌‌‍‌​​‌​​​​‍‌‌​‌‌‌‌‌‍‌​​​‌​​​‍‌​​‌​​​​‍‌​​​‌‌​‌‍‌​​‌​​‌‌‍‌​​‌‌​‌‌"
# => hello world

About

CLI to encode/decode zero-width character messages


Languages

Language:JavaScript 100.0%