# text-base-lookup

> find out all text base files

Latest version **0.0.2** (published 2018-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install text-base-lookup
pnpm add text-base-lookup
yarn add text-base-lookup
bun add text-base-lookup
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-10-22 |
| First published | 2018-10-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | She Ailun |
| Maintainers | jf3096 |
| Keywords | text-base-lookup |

## Links

- npm: https://www.npmjs.com/package/text-base-lookup
- Homepage: https://github.com/jf3096/text-base-lookup
- npm.io page: https://npm.io/package/text-base-lookup

## Dependencies (4)

- [fast-glob](https://npm.io/package/fast-glob.md) 2.2.3
- [promisify](https://npm.io/package/promisify.md) 0.0.3
- [isbinaryfile](https://npm.io/package/isbinaryfile.md) 3.0.3
- [es6-promisify](https://npm.io/package/es6-promisify.md) 6.0.1

## Recent versions

- 0.0.2 (latest) — 2018-10-22

## README

# text-base-lookup

> 遍历目录获取所有文本类型(或二进制)文件

## 安装

```shell
  npm install text-base-lookup --save
```

## 使用

```ts
import lookup from "text-base-lookup";

const resolve = (...relativePath) => path.resolve(__dirname, '../', ...relativePath);

const patterns = [
  resolve('app/**/*')
];

lookup(patterns).then(({ text, binary }) => {
  console.log(text); // 文本类型文件列表
  console.log(binary); // 二进制文件列表
});
```

## 作者
She Ailun

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