2.0.3 • Published 3 years ago

secret-text v2.0.3

Weekly downloads
11
License
MIT
Repository
github
Last release
3 years ago

Coverage Status Build Status

Secret-Text

Hide any text without visible changes inside HTML DOM Node and get it back when needed.

Download

npm i -D secret-text

Examples

import secretText from "secret-text"

//insert secret string inside existing DOM element
let div = document.querySelector("div")
div.innerHTML += secretText.makeSecretText("hello world!")

//get secret string from existing DOM element
let originalStr = secretText.getSecretText(div.innerHTML) // 'hello world!'
  • Before: before
  • After: after

API

MethodArgument TypeReturn TypeDescription
makeSecretText( text )stringstringReturns secret text encrypted with non-printable symbols.
getSecretText( text )stringstringReturns secret text from received text.
2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago