{"_id":"s-it-floos","name":"s-it-floos","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"s-it-floos","version":"1.0.0","main":"index.js","description":"提供了格式化时间、HTMLEscape相关的功能","keywords":["shiyaoran","liujia","escape","dateFormat","itheima"],"license":"ISC","_id":"s-it-floos@1.0.0","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Ui8jsq6X/iliDE1DfO9pnzRIc9HTMMsGhlvhIwArm3PSIyNafTOXkz2ots3ZPuGN6hwOERV7oDMxHQwi9zoMAg==","shasum":"15c5c4c51c9b6ba0a3f74ae6dc99e627f0b4e3ee","tarball":"https://registry.npmjs.org/s-it-floos/-/s-it-floos-1.0.0.tgz","fileCount":5,"unpackedSize":2451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQUdfDZX7jPnraakJqrVBmCK2VcfSlYb4Ie1FbzXF3mQIgIMNFGOfPj7CMqxHFqOFlB7hJWxmun/U9dfCnByA55F4="}]},"_npmUser":{"name":"s-yr","email":"18037397835@163.com"},"directories":{},"maintainers":[{"name":"s-yr","email":"18037397835@163.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-it-floos_1.0.0_1696817718349_0.6101182165887127"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-09T02:15:18.348Z","1.0.0":"2023-10-09T02:15:18.520Z","modified":"2023-10-09T02:15:18.878Z"},"maintainers":[{"name":"s-yr","email":"18037397835@163.com"}],"description":"提供了格式化时间、HTMLEscape相关的功能","keywords":["shiyaoran","liujia","escape","dateFormat","itheima"],"license":"ISC","readme":"## 导入\r\n```js\r\nconst ce=require('./S-it-floos')\r\n```\r\n\r\n## 格式化时间\r\n```js \r\n// 调用 dateFormat 对时间进行格式化\r\nconst dtStr=ce.dateFromat(new Date())\r\n// 输出结果 2023-10-09 09:28:44\r\nconsole.log(dtStr);\r\n```\r\n\r\n## 转义 HTML 中的特殊字符\r\n``` js\r\n// 待 转换的HTML字符串\r\nconst htmlStr='<h1>这是什么</h1>'\r\n// 调用 htmlEscape 方法进行转换\r\nconst str=ce.htmlEscape(htmlStr)\r\n// 输出转换结果 &lt;h1&gt这是什么&lt;/h1&gt\r\nconsole.log(str);\r\n```\r\n\r\n## 还原 HTML 中的特殊字符\r\n``` js\r\n// 待还原的 HTML 字符串\r\n// 调用 htmlUnEscape 方法进行转换 \r\nconst strs=ce.htmlUnEscape(htmlStr)\r\n// 输出结果 <h1>这是什么</h1>\r\nconsole.log(strs);\r\n\r\n## 开源协议\r\nISC","readmeFilename":"README.md"}