Skip to content

🙈 Utilize invisible UTF8-characters to encode and attach any integer to a string without changing its visual appearance

License

Notifications You must be signed in to change notification settings

rastapasta/invisible-attachment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

invisible-attachment

build status coverage npm version Greenkeeper badge license

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.

About

🙈 Utilize invisible UTF8-characters to encode and attach any integer to a string without changing its visual appearance

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published