# nth-file

> Nodejs 对文件某一行的处理库

Latest version **1.0.4** (published 2020-12-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install nth-file
pnpm add nth-file
yarn add nth-file
bun add nth-file
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2020-12-20 |
| First published | 2020-12-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 吉法师 |
| Maintainers | jifashi |
| Keywords | line, file, nth |

## Links

- npm: https://www.npmjs.com/package/nth-file
- Repository: https://gitee.com/onlyyyy/nth-file
- npm.io page: https://npm.io/package/nth-file

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2020-12-20
- 1.0.5 — 2020-12-15
- 1.0.3 — 2020-12-14
- 1.0.2 — 2020-12-14
- 1.0.1 — 2020-12-12
- 1.0.0 — 2020-12-12

## 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);
```

---
_Source: https://npm.io/package/nth-file · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
