posthtml-beautify:一个可以美化html文件的posthtml插件。 在线服务--源码

上传者: 42131728 | 上传时间: 2021-02-01 19:06:02 | 文件大小: 2.37MB | 文件类型: ZIP
posthtml-美化 一个可以美化您的html文件的插件 为什么? 根据,格式化html和内联css标记。 支持的选项的完整列表: 转换小写元素名称 转换小写属性名称 仅双引号 关闭所有html元素 在自动关闭中删除尾部斜杠 删除等号处的空格 添加空行以分隔大型或逻辑代码块 增加2个缩进空间。 不要使用TAB 。 添加语言属性 添加字符编码 属性顺序 布尔属性 从内联样式创建文件 创建作用域类名(使用css-modules )而不是内联样式 验证元素和属性名称 解析Internet Explorer条件注释(不支持下层显示和有效版本, ) 安装 npm i -S posthtml posthtml-beautify 注意:此项目与节点v10 +兼容 用法 import { readFileSync , writeFileSync } from 'fs' ; import posthtml from 'posthtml' ; import beautify from 'posthtml-beautify' ; const html = readFil

文件下载

资源详情

[{"title":"( 39 个子文件 2.37MB ) posthtml-beautify:一个可以美化html文件的posthtml插件。 在线服务--源码","children":[{"title":"posthtml-beautify-master","children":[{"title":".gitignore <span style='color:#111;'> 86B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"nodejs.yml <span style='color:#111;'> 467B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"webpack.config.babel.js <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"utils","children":[{"title":"index.js <span style='color:#111;'> 360B </span>","children":null,"spread":false}],"spread":true},{"title":"fixtures","children":[{"title":"offer.html <span style='color:#111;'> 177.28KB </span>","children":null,"spread":false},{"title":"btn.html <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"input-blank-lines.html <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"input-inline-js.html <span style='color:#111;'> 235B </span>","children":null,"spread":false},{"title":"input-indent.html <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"input-posthtml-include.html <span style='color:#111;'> 66B </span>","children":null,"spread":false},{"title":"btn-outline-white.html <span style='color:#111;'> 98B </span>","children":null,"spread":false},{"title":"input-posthtml-modules.html <span style='color:#111;'> 125B </span>","children":null,"spread":false},{"title":"input-conditional-comment.html <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"offer.htm <span style='color:#111;'> 177.28KB </span>","children":null,"spread":false},{"title":"expected","children":[{"title":"output-indent.html <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"output-posthtml-include.html <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"output-posthtml-modules.html <span style='color:#111;'> 142B </span>","children":null,"spread":false},{"title":"output-conditional-comment.html <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"output-blank-lines.html <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"output-inline-js.html <span style='color:#111;'> 310B </span>","children":null,"spread":false}],"spread":true},{"title":"test-plugin.js <span style='color:#111;'> 9.95KB </span>","children":null,"spread":false},{"title":"test-processing.js <span style='color:#111;'> 474B </span>","children":null,"spread":false}],"spread":true},{"title":".jsinspectrc <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"app.js <span style='color:#111;'> 7.10MB </span>","children":null,"spread":false},{"title":"index.html <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"tags.js <span style='color:#111;'> 4.65KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"app.js <span style='color:#111;'> 1.30KB </span>","children":null,"spread":false},{"title":"template.hbl <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false}],"spread":true},{"title":"rules.js <span style='color:#111;'> 126B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 10.19KB </span>","children":null,"spread":false},{"title":"attrs.js <span style='color:#111;'> 702B </span>","children":null,"spread":false}],"spread":true},{"title":"readme.md <span style='color:#111;'> 5.30KB </span>","children":null,"spread":false},{"title":"changelog.md <span style='color:#111;'> 44.25KB </span>","children":null,"spread":false},{"title":".npmignore <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":".travis.yml <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 328B </span>","children":null,"spread":false},{"title":"license <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 776.63KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明