@protontech/sieve.js

2.0.6 • Public • Published

CircleCI

Sieve.js

JavaScript library to wrap sieve configuration

Simple representation

{
    Operator: {
        label: '',
        value: 'AllOf' // 'AnyOf'
    },
    Conditions: [
        {
            Comparator: {
                value: 'contains' // 'is', 'matches', 'starts', 'ends'
            },
            Values: ['thomas.anderson@protonmail.com']
        }
    ],
    Actions: {
        FileInto: ['trash'],
        Mark: {
            Read: false,
            Starred: false
        },
        Vacation: 'Not here for few days'
    }
}

Test

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i @protontech/sieve.js

Weekly Downloads

0

Version

2.0.6

License

ISC

Unpacked Size

80.9 kB

Total Files

27

Last publish

Collaborators

  • e1a0a0ea
  • guillaumez
  • edvincandon
  • epokk
  • econdepe
  • larabr
  • mmso
  • twiss
  • bartbutler