all files / commonform-docx/templates/ hash.js

100% Statements 3/3
50% Branches 1/2
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11                
var paragraph = require('./paragraph')
 
module.exports = function (string, center, styles) {
  return paragraph({
    alignment: center ? 'center' : 'left',
    depth: 1,
    title: true,
    content: [ { monospaced: string } ]
  }, null, null, null, null, styles)
}