@mdo-org/mdo-plugin-remove-complete

0.2.13 • Public • Published

"Remove Complete" Plugin

Removes to-dos marked as complete from the stream.

Installation

npm install --save @mdo-org/mdo-plugin-remove-complete

Usage

const removeComplete = require('@mdo-org/mdo-plugin-remove-complete');
mdoStream.pipe(removeComplete());

Overview

Removes any to-do with type === "COMPLETE_TASK" from the stream.

Eg:

given a stream that emits the following blocks

{ type: "INCOMPLETE_TASK", text: "{{type}} I will surviveee" }
{ type: "COMPLETE_TASK", text: "{{type}} Goodbyeee Moonmen" }

after removeComplete(), the stream will only emit

{ type: "INCOMPLETE_TASK", text: "{{type}} I will surviveee" }

Readme

Keywords

none

Package Sidebar

Install

npm i @mdo-org/mdo-plugin-remove-complete

Weekly Downloads

12

Version

0.2.13

License

SEE LICENSE IN ../../LICENSE

Unpacked Size

37 kB

Total Files

4

Last publish

Collaborators

  • alexishevia