没有合适的资源?快使用搜索试试~ 我知道了~
to-quoted-string:将源代码转换为带引号的字符串以用作模板模块
共13个文件
js:4个
md:2个
editorconfig:1个
需积分: 9 0 下载量 90 浏览量
2021-06-23
03:52:51
上传
评论
收藏 7KB ZIP 举报
温馨提示
引用字符串 将源代码转换为模板以用作模块。 使用安装 npm i to-quoted-string --save 跳转到 用法 var toQuotedString = require ( 'to-quoted-string' ) ; 假设你想把这个模板变成一个 javascript 模块: <!DOCTYPE html > < html lang =" en " > < head > < meta charset =" UTF-8 " > < title > {{title}} </ title > </ head > < body > {% body %} </ body > </ html > 传递字符串 var fs = require ( 'fs' ) ; var str = fs . readFileSync ( 'foo
资源推荐
资源详情
资源评论
收起资源包目录
to-quoted-string-master.zip (13个子文件)
to-quoted-string-master
.jshintrc 302B
.gitignore 130B
package.json 1KB
cli.js 988B
LICENSE 1KB
index.js 765B
test.js 872B
.verb.md 2KB
README.md 2KB
.gitattributes 127B
fixtures
index.html 150B
wrap.js 517B
.editorconfig 295B
共 13 条
- 1
资源评论
靳骁曈
- 粉丝: 23
- 资源: 4680
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功