1.0.4 • Published 6 years ago

unseen-data v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago