UNPKG

@barchart/common-node-js

Version:

Common classes, utilities, and functions for building Node.js servers

25 lines (18 loc) 530 B
const log4js = require('log4js'); const MutateStringResultProcessor = require('./MutateStringResultProcessor'); module.exports = (() => { 'use strict'; const logger = log4js.getLogger('data/processors/LowercaseResultProcessor'); class LowercaseResultProcessor extends MutateStringResultProcessor { constructor(configuration) { super(configuration); } _processString(value) { return value.toLowerCase(); } toString() { return '[LowercaseResultProcessor]'; } } return LowercaseResultProcessor; })();