# filter-file-lines

> filter file lines by readline

Latest version **1.1.0** (published 2022-11-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install filter-file-lines
pnpm add filter-file-lines
yarn add filter-file-lines
bun add filter-file-lines
```

Provides the command `filter`.

## 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.1.0 |
| Published | 2022-11-24 |
| First published | 2021-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | eoyo@yoix.outlook.com |
| Maintainers | eoyo |

## Links

- npm: https://www.npmjs.com/package/filter-file-lines
- npm.io page: https://npm.io/package/filter-file-lines

## Recent versions

- 1.1.0 (latest) — 2022-11-24
- 1.0.2 — 2021-07-08
- 1.0.1 — 2021-07-03
- 1.0.0 — 2021-07-02

## README

# filter-file-lines

按行过滤文件的内容. 主要用于日志文件的分析.

## 安装
`yarn global add filter-file-lines`

## 启动
`filter 'FILE_PATH'` , 直接 watch 某个文件, 开始 filter.
`filter`, 启动程序, 根据提示输入

## 使用规则
1. 默认使用正则表达式搜索, 默认忽略大小写
2. "/" 开头的搜索命令将会使用完整匹配.
4. "." 开头的将会有启用一些内置的命令
   1. `.exit` 退出
   2. `.end` 删除临时的 `*.filter.log` 文件, 然后退出.
   4. `.range` 进入区间选择过滤, 需要连续输入两条过滤条件来选择日志的区间
   5. `.save` 保存当前的过滤结果, 并在当前的过滤结果上继续过滤

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