{"id":19560648,"url":"https://github.com/zoubin/word-filter","last_synced_at":"2025-07-19T02:05:23.335Z","repository":{"id":57398984,"uuid":"50580418","full_name":"zoubin/word-filter","owner":"zoubin","description":"Extract words from the input stream","archived":false,"fork":false,"pushed_at":"2016-02-05T06:03:41.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T06:39:05.889Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoubin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-28T12:09:29.000Z","updated_at":"2016-01-30T13:00:32.000Z","dependencies_parsed_at":"2022-09-12T05:41:11.119Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/word-filter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zoubin/word-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fword-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fword-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fword-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fword-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/word-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fword-filter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265827742,"owners_count":23835052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T05:08:22.720Z","updated_at":"2025-07-19T02:05:23.304Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# word-filter\n[![version](https://img.shields.io/npm/v/word-filter.svg)](https://www.npmjs.org/package/word-filter)\n[![status](https://travis-ci.org/zoubin/word-filter.svg?branch=master)](https://travis-ci.org/zoubin/word-filter)\n\nExtract words from the input stream into another text stream.\n\n[中文介绍](读我.md)\n\n## Command line\n```bash\nnpm i -g word-filter\n\nwf -h\n\nwf -n example/text\ncat example/text | wf -n\n\n```\n\n## API\n\n```js\nconst WordFilter = require('word-filter')\n\nconst fs = require('fs')\n\nfs.createReadStream(__dirname + '/text')\n  .pipe(WordFilter.ascii())\n  .on('data', word =\u003e console.log(word))\n\n```\n\n**Input**\n```\nDon't repeat yourself.\n笑相遇，似觉琼枝玉树相倚，暖日明霞光烂。\nDo one thing and do it well.\n在Node stream暴露的接口中，Readable和Writable分别需要实现_read和_write方法。\n\n```\n\n**Output**\n```\nDon\nt\nrepeat\nyourself\nDo\none\nthing\nand\ndo\nit\nwell\nNode\nstream\nReadable\nWritable\n_read\n_write\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fword-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fword-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fword-filter/lists"}