align.js 367 B

1234567891011121314
  1. 'use strict';
  2. const format = require('./format');
  3. /*
  4. * function align (info)
  5. * Returns a new instance of the align Format which adds a `\t`
  6. * delimiter before the message to properly align it in the same place.
  7. * It was previously { align: true } in winston < 3.0.0
  8. */
  9. module.exports = format(info => {
  10. info.message = `\t${info.message}`;
  11. return info;
  12. });