# word-filter

> Count the number of characters in a text stream

Latest version **0.1.2** (published 2016-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install word-filter
pnpm add word-filter
yarn add word-filter
bun add word-filter
```

Provides the command `wf`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-02-05 |
| First published | 2016-01-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | zoubin |
| Maintainers | zoubin |
| Keywords | count, cjk, character |

## Links

- npm: https://www.npmjs.com/package/word-filter
- Repository: https://github.com/zoubin/word-filter
- Homepage: https://github.com/zoubin/word-filter#readme
- Issues: https://github.com/zoubin/word-filter/issues
- npm.io page: https://npm.io/package/word-filter

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.9.0

## Recent versions

- 0.1.2 (latest) — 2016-02-05
- 0.1.1 — 2016-02-05
- 0.1.0 — 2016-01-29

## README

# word-filter
[![version](https://img.shields.io/npm/v/word-filter.svg)](https://www.npmjs.org/package/word-filter)
[![status](https://travis-ci.org/zoubin/word-filter.svg?branch=master)](https://travis-ci.org/zoubin/word-filter)

Extract words from the input stream into another text stream.

[中文介绍](读我.md)

## Command line
```bash
npm i -g word-filter

wf -h

wf -n example/text
cat example/text | wf -n

```

## API

```js
const WordFilter = require('word-filter')

const fs = require('fs')

fs.createReadStream(__dirname + '/text')
  .pipe(WordFilter.ascii())
  .on('data', word => console.log(word))

```

**Input**
```
Don't repeat yourself.
笑相遇，似觉琼枝玉树相倚，暖日明霞光烂。
Do one thing and do it well.
在Node stream暴露的接口中，Readable和Writable分别需要实现_read和_write方法。

```

**Output**
```
Don
t
repeat
yourself
Do
one
thing
and
do
it
well
Node
stream
Readable
Writable
_read
_write

```

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