@protontech/sieve.js

JavaScript library to wrap sieve configuration

Usage no npm install needed!

<script type="module">
  import protontechSieveJs from 'https://cdn.skypack.dev/@protontech/sieve.js';
</script>

README

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