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

1.1.2 • Public • Published

逻辑打乱文字

不改变文字显示的原有顺序,而改变在 DOM 树中顺序.

0511193628

Demo: https://innei.github.io/shuffle-article/

使用

yarn add article-shuffle
import { process } from 'article-shuffle'
const $article = document.querySelector('article')
$article.innerHTML = originHTML

$article.querySelectorAll('p').forEach(($p) => {
  process($p)
})

Readme

Keywords

Package Sidebar

Install

npm i article-shuffle

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

10.7 kB

Total Files

14

Last publish

Collaborators

  • innei