knowitwhenyouseeit
TypeScript icon, indicating that this package has built-in type declarations

2.42.1 • Public • Published

knowitwhenyouseeit

provides functions to render client-side data but only if it matches a secure digest

NPM

Install

yarn add knowitwhenyouseeit

Usage

import allowlisted from 'knowitwhenyouseeit'

const getMessage = allowllisted(
  "$2y$12$BcuZ0VfUeLLpoLxOC5Xv7eQQK0r95by8YJsECCldKP4ftPr20rpXW", //hello world
  "$2y$12$hxyWxMx.qap70Snn1QKMwuDp/9XgNM7HpwbrGnsPu/j7dyTEWh0M2" //hewwo world
)

getMessage("helllo world!") // false
getMessage("hello world") // "hello world"

License

MIT © zemnmez

Readme

Keywords

none

Package Sidebar

Install

npm i knowitwhenyouseeit

Weekly Downloads

5

Version

2.42.1

License

MIT

Unpacked Size

3.24 kB

Total Files

5

Last publish

Collaborators

  • zemnmez