{"name":"heti","version":"0.9.6","description":"赫蹏是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来，可以为网站的读者带来更好的文章阅读体验。","main":"lib/heti.scss","scripts":{"start":"sass -w --no-source-map _site/scss/:_site/","compile":"rollup -c -w","build:style":"sass --no-source-map --style=compressed lib/heti.scss:umd/heti.min.css","build:site":"sass --no-source-map _site/scss/:_site/","build:script":"rollup -c","build":"npm run build:style && npm run build:site && npm run build:script","test":"npx stylelint --config package.json 'lib/**/*.scss'"},"repository":{"type":"git","url":"git+https://github.com/sivan/heti.git"},"keywords":["typography","clreq","css","sass","scss"],"author":{"name":"Sivan","email":"sun.sivan@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/sivan/heti/issues"},"homepage":"https://github.com/sivan/heti#readme","dependencies":{"heti-findandreplacedomtext":"^0.5.0"},"devDependencies":{"@rollup/plugin-commonjs":"^11.1.0","@rollup/plugin-node-resolve":"^7.1.3","rollup":"^1.32.1","rollup-plugin-terser":"^5.3.1","sass":"^1.57.0","stylelint":"^13.13.1","stylelint-config-recommended-scss":"^4.3.0","stylelint-config-standard":"^22.0.0","stylelint-scss":"^3.21.0"},"stylelint":{"extends":["stylelint-config-standard","stylelint-config-recommended-scss"],"rules":{"no-descending-specificity":null,"at-rule-empty-line-before":null,"block-opening-brace-space-before":"always","block-closing-brace-newline-after":["always",{"ignoreAtRules":["if","else"]}],"property-no-unknown":null,"rule-empty-line-before":null,"selector-type-no-unknown":[true,{"ignore":["custom-elements"]}]}},"_id":"heti@0.9.6","gitHead":"ab89fc61be0faf4ac3f4aab7b1ba6a606d482c7a","_nodeVersion":"18.20.8","_npmVersion":"10.8.2","dist":{"integrity":"sha512-HdfW9QENMp0j54mgrRqEMJ4oa9CmhvrbRk9ijr1IGqxCmVa8Z8ENftHowCSSC2unAL+Qbglu8k8OLneuNV0jeQ==","shasum":"fedb0a103fb7083edd2d006dfd0da925c76924d9","tarball":"http://registry-npm.ywwl.com/heti/download/heti-0.9.6.tgz","fileCount":25,"unpackedSize":72735,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDLXYUI9+n3AwJ/CsrFqgC3Fzrsn/WNRuxFGvaLqOeeigIhANsC7COC0ITIzTWZb1DdLSeldj1d14ZjDo2RU5fExhRp"}],"size":20434,"noattachment":false,"key":"/heti/-/heti-0.9.6.tgz"},"_npmUser":{"name":"sivan","email":"sunxingfan@xiaomi.com"},"directories":{},"maintainers":[{"name":"sivan","email":"sunxingfan@xiaomi.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/heti_0.9.6_1756556459738_0.5181325103555741"},"_hasShrinkwrap":false,"readme":"# 赫蹏\n\n赫蹏（hètí）是专为中文内容展示设计的排版样式增强。它基于通行的中文排版规范而来，可以为网站的读者带来更好的文章阅读体验。\n\n预览：[https://sivan.github.io/heti/](https://sivan.github.io/heti/)\n\n![Preview](https://raw.githubusercontent.com/sivan/heti/master/_site/assets/screenshot-grid.png)\n\n主要特性：\n- 贴合网格的排版；\n- 全标签样式美化；\n- 预置古文、诗词样式；\n- 预置多种排版样式（行间注、多栏、竖排等）；\n- 多种预设字体族（仅限桌面端）；\n- 简/繁体中文支持；\n- 自适应黑暗模式；\n- 中西文混排美化，不再手敲空格👏（基于 JavaScript 脚本）；\n- 全角标点挤压（基于 JavaScript 脚本）；\n- 兼容 *normalize.css*、*CSS Reset* 等常见样式重置；\n- 移动端支持；\n- ……\n\n总之，用上就会变好看。\n\n## 使用方法\n\n1. 在页面的 `<head>` 标签中引入 `heti.css` 文件：\n    ```\n    <link rel=\"stylesheet\" href=\"//unpkg.com/heti/umd/heti.min.css\">\n    ```\n1. 在要作用的容器元素上增加 `class=\"heti\"` 的类名即可：\n    ```\n    <article class=\"entry heti\">\n      <h1>我的世界观</h1>\n      <p>有钱人的生活就是这么朴实无华，且枯燥</p>\n      ……\n    </article>\n    ```\n1. 使用增强脚本（可选）：\n    ```\n    <script src=\"//unpkg.com/heti/umd/heti-addon.min.js\"></script>\n    <script>\n      const heti = new Heti('.heti');\n      heti.autoSpacing(); // 自动进行中西文混排美化和标点挤压\n    </script>\n    ```\n\n\n## WIP\n\n暂时没什么想做的了。\n\n- [x] 自适应黑暗模式\n- [x] 标点挤压\n- [x] 中、西文混排\n- [x] 繁体中文支持\n- [x] 诗词版式\n- [x] 行间注版式\n\n## Star History\n\n谢谢每一位加星的朋友，让这个疫情期间憋在家里无聊做的小项目有了更大的价值。\n\n[![Star History Chart](https://api.star-history.com/svg?repos=sivan/heti&type=Date)](https://www.star-history.com/#sivan/heti&Date)\n\n-- EOF --\n","publish_time":1756556459951,"_cnpm_publish_time":1756556459951,"dist-tags":{"latest":"0.9.6"}}