linesert:轻松在文件的特定行号处插入行

时间:2021-07-02 01:14:58
【文件属性】:
文件名称:linesert:轻松在文件的特定行号处插入行
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-02 01:14:58
JavaScript 换行符 在文件的特定行号处轻松插入行。 特征 允许您轻松地在文件的特定行号处插入行。 插入一行或一组行。 在特定行号之前插入行。 在特定行号后插入行。 入门 使用 npm install --save linesert - npm install --save linesert 用法 var linesert = require ( "linesert" ) ; // file.txt //=> 1. //=> 3. linesert ( "file.txt" ) . beforeLine ( 2 ) . insert ( "2." , function ( err , result ) { //=> 1. //=> 2. //=> 3. } ) ; 应用程序接口 直线插入(路径) 名称 类型 争论 描述 小路 string 要修改的文件的
【文件预览】:
linesert-master
----.travis.yml(38B)
----package.json(852B)
----readme.md(2KB)
----test()
--------linesert.js(2KB)
--------fixtures()
----license(1KB)
----.gitignore(13B)
----lib()
--------linesert.js(2KB)
----contributing.md(149B)

网友评论