1.1.4 • Published 6 months ago

zero.str v1.1.4

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

zero.str

Handling zero width characters in JavaScript.

利用零宽字符的不可见特性,可以在 web 页面中插入一些加密信息。

安装

npm i zero.str

使用

import { encodeZeroWidth, decodeZeroWidth } from "zero.str"

// 插入零宽字符
const encodeStr = encodeZeroWidth("正文内容", "hello,world!")

// 获取零宽字符
const zeroWidth = decodeZeroWidth(encodeStr)
// zeroWidth = hello,world

页面效果

img

1.1.4

6 months ago

1.1.3

6 months ago

1.1.2

6 months ago

1.1.1

6 months ago

1.1.0

6 months ago

1.0.0

6 months ago