{"id":17458959,"url":"https://github.com/caseywebb/taskr-filter","last_synced_at":"2026-02-06T21:31:55.283Z","repository":{"id":26337888,"uuid":"108329786","full_name":"caseyWebb/taskr-filter","owner":"caseyWebb","description":":heavy_minus_sign: Filter plugin for Taskr","archived":false,"fork":false,"pushed_at":"2023-01-24T11:01:44.000Z","size":1370,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T07:13:03.563Z","etag":null,"topics":["fly","fly-plugin","taskr","taskr-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/caseyWebb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-10-25T21:48:20.000Z","updated_at":"2022-01-06T16:41:44.000Z","dependencies_parsed_at":"2023-02-13T20:31:21.166Z","dependency_job_id":null,"html_url":"https://github.com/caseyWebb/taskr-filter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyWebb%2Ftaskr-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyWebb%2Ftaskr-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyWebb%2Ftaskr-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseyWebb%2Ftaskr-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caseyWebb","download_url":"https://codeload.github.com/caseyWebb/taskr-filter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247592066,"owners_count":20963453,"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":["fly","fly-plugin","taskr","taskr-plugin"],"created_at":"2024-10-18T04:38:26.962Z","updated_at":"2026-02-06T21:31:55.242Z","avatar_url":"https://github.com/caseyWebb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# taskr-filter\n\n\u003e Filter plugin for [Taskr][]\n\n[![NPM][npm-shield]][npm]\n[![License][license-shield]][license]\n[![Build Status][build-status-shield]][build-status]\n[![Coverage Status][codecov-shield]][codecov]\n\n## Install\n\n```yarn\n$ yarn add -D taskr taskr-filter\n```\n\n_or_\n\n```bash\n$ npm install --save-dev taskr taskr-filter\n```\n\n## Usage\n\n### Function\n\n```js\nexport default function*(task) {\n  yield task\n    .source(path.join(__dirname, 'src/*'))\n    .filter((file) =\u003e {\n      // file.base\n      // file.dir\n      // file.data\n      return file.base.indexOf('.js') \u003e 1\n    })\n    .target('./dist')\n}\n```\n\n### RegExp\n\n```js\nexport default function*(task) {\n  yield task\n    .source(path.join(__dirname, 'src/*'))\n    .filter(/\\.js$/)\n    .target('./dist')\n}\n```\n\n### Glob(s)\n\nUses [multimatch][], which supports multiple patterns\n\n### RegExp\n\n```js\nexport default function*(task) {\n  yield task\n    .source(path.join(__dirname, 'src/*'))\n    .filter('**/*.js')\n    .target('./dist')\n}\n```\n\n**NOTE:** RegExps and globs are tested against the full path. You will need to use globstars, and may want to restrict them to your workspace. For example, to match anything with 'ba', but only in a specified directory, use `path.join(__dirname, 'ba*')`.\n\n[taskr]: https://github.com/lukeed/taskr\n[multimatch]: https://www.npmjs.com/package/multimatch\n[npm]: https://npmjs.com/package/taskr-filter\n[npm-shield]: https://img.shields.io/npm/v/taskr-filter.svg\n[license]: ./LICENSE\n[license-shield]: https://img.shields.io/npm/l/taskr-filter.svg\n[build-status]: https://github.com/caseyWebb/taskr-filter/actions/workflows/nodejs.yml\n[build-status-shield]: https://img.shields.io/github/workflow/status/caseyWebb/taskr-filter/Node%20CI/master\n[codecov]: https://codecov.io/gh/caseyWebb/taskr-filter\n[codecov-shield]: https://img.shields.io/codecov/c/github/caseyWebb/taskr-filter.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebb%2Ftaskr-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaseywebb%2Ftaskr-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebb%2Ftaskr-filter/lists"}