unseen-data
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

unseen-data

Convert data to an unseen zero-width binary string.

Example

import Unseen from 'unseen-data'
const unseen = new Unseen({ compression: true })

const encoded = unseen.encode('Hello world!')
// encoded = '​​​​‍​‍‌​‍​‌‍‌‌‌‍​‌‍​‌‍​‍​​‌‌‌‍‌​‍‌‍​‌‍‌​​‍​‌​‍​‍'

const decoded = unseen.decode(encoded)
// decoded = 'Hello world!'

Options

Options can be passed as an object in the constructor.

compression?: boolean

By default, data is compressed with pako to reduce the length of the resulting strings.

charset?: [string, string, string, string]

By default, unseen-data uses a Base4 charset consisting of four different types of invisible characters.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.41latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.41
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i unseen-data

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

4.93 kB

Total Files

8

Last publish

Collaborators

  • samdd