0.1.0 • Published 1 year ago

@uniiem/zws v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@uniiem/zws

GitHub Actions Workflow Status NPM Downloads NPM Version (with dist tag) npm bundle size GitHub License

A simple library for zero-width steganography.

Installation

npm install @uniiem/zws

Usage

import {
  encodeText,
  decodeText,
  encodeBinary,
  decodeBinary,
  setCharSet
} from '@uniiem/zws';

API

declare const setCharSet: (newChars: ZWSCharSet) => void;
declare const encodeText: (text1: string, text2: string) => string;
declare const encodeBinary: (text: string, data: Uint8Array) => string;
declare const decodeText: (text: string) => ZWSDecoded<string>;
declare const decodeBinary: (text: string) => ZWSDecoded<Uint8Array>;
declare const ZW_CHARACTERS: readonly ZWSCharacter[];

Sponsor

Buy me a coffee~

Support me on Patreon 爱发电