lineder:查找并返回文件中与正则表达式匹配的每一行

时间:2021-07-02 11:49:56
【文件属性】:
文件名称:lineder:查找并返回文件中与正则表达式匹配的每一行
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-02 11:49:56
JavaScript 内衬 查找并返回与正则表达式匹配的文件每一行的信息。 特征 查找并返回与您的搜索匹配的文件每一行的信息。 使用正则表达式搜索。 获取找到匹配结果的行号。 获取找到匹配结果的整行。 入门 使用 npm install --save lineder - npm install --save lineder 用法 var lineder = require ( "lineder" ) ; /* file.txt 1. this is the text for line one. 2. this is the text for line two. 3. this is the text for line three. */ lineder ( "file.txt" ) . find ( "line two" , function ( err , results ) {
【文件预览】:
lineder-master
----contributing.md(149B)
----lib()
--------lineder.js(2KB)
----license(1KB)
----.travis.yml(38B)
----test()
--------fixtures()
--------lineder.js(396B)
----.gitignore(13B)
----readme.md(2KB)
----package.json(775B)

网友评论