没有合适的资源?快使用搜索试试~ 我知道了~
linefeeds:使用Node.JS转换文件换行
共21个文件
ts:10个
js:5个
json:3个
需积分: 14 0 下载量 114 浏览量
2021-05-01
21:11:34
上传
评论
收藏 36KB ZIP 举报
温馨提示
换行 CRLF和LF之间的文件行尾转换。 包含TypeScript定义(1.6+) 安装 npm install linefeeds --save 用法 例子: import lf = require ( 'linefeeds' ) ; import fs = require ( 'fs' ) ; var input = 'input.txt' ; /** * Without no output provided, it will replace the input file */ var callback = error => console . log ( error ? 'Failed to convert' : 'Successfully converted' ) ; // Synchronously convert to LF lf . convertSync ( in
资源推荐
资源详情
资源评论
收起资源包目录
linefeeds-master.zip (21个子文件)
linefeeds-master
.gitignore 31B
package.json 649B
src
convertStream.ts 974B
replace.ts 280B
options.ts 748B
index.js 2KB
replace.js 266B
options.js 768B
convertStream.js 1KB
index.ts 2KB
typings
node
node.d.ts 85KB
bluebird
bluebird.d.ts 39KB
mocha
mocha.d.ts 7KB
chai
chai.d.ts 12KB
tsconfig.json 149B
readme.md 1KB
.vscode
tasks.json 471B
.npmignore 46B
test
index.js 2KB
index.ts 2KB
index.d.ts 738B
共 21 条
- 1
资源评论
thonxie
- 粉丝: 22
- 资源: 4532
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功