diff --git a/index.js b/index.js index c96d7c1..69f622e 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,8 @@ const pretty = require('pretty'); const DEFAULT_CONFIG = { tidy: true, - headers: null + headers: null, + border: null }; module.exports = (data, config) => { @@ -27,6 +28,8 @@ module.exports = (data, config) => { return `${$tds.join('')}`; }); let $body = `${$rows.join('')}`; - let rst = `${$header}${$body}
`; + let rst; + if (config.border) {rst = `${$header}${$body}
`;} + else {rst = `${$header}${$body}
`;} return config.tidy ? pretty(rst) : rst; };