invisible-attachment
v1.0.2
Published
Attach and parse an invisible encoded number to any string by using invisible UTF8 characters
Downloads
11
Maintainers
Readme
invisible-attachment
Encode and attach any numeric value to a string by using invisible UTF8 characters.
Example
const { attach, extract } = require('invisible-attachment')
const attached = attach('this is an example', 1337)
// -> this is an example⠀⠀
const decoded = extract(attached)
// -> 1337
Usecase
Attaching additional metadata to strings in systems you don't control but want to build a beautiful client for :)
Imagine triggering client features by attaching invisible control commands to messages exchanged on a chat platform - while users without your client won't notice any difference in the exchanged messages.