1.0.4 • Published 7 years ago

unseen-data v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago