# nth-file **Repository Path**: redrice/nth-file ## Basic Information - **Project Name**: nth-file - **Description**: Nodejs 对文件某一行的处理库 - **Primary Language**: NodeJS - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-06-11 - **Last Updated**: 2022-06-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # FileLine ## 介绍 Node.js operate file's nth line Nodejs 对文件某一行的处理库 ## APIS **以下都为同步函数** **ALL ARE SYNC** insert(fileName, index, data); update(fileName, index, data); delete(fileName, index); getLines(fileName); read(fileName,index); deleteLines(fileName, indexArr); example ```js const fileLine = require('nth-line'); let fileName = "./1.txt"; let arr = [1,2,3] fileLine.deleteLines(fileName,arr); ```