Mailspring/message-processor/processors/index.js

10 lines
206 B
JavaScript
Raw Normal View History

const fs = require('fs')
const processors = fs.readdirSync(__dirname)
.filter((file) => file !== 'index.js')
.map((file) => {
return require(`./${file}`).processMessage
})
module.exports = {processors}