node-tableify icon indicating copy to clipboard operation
node-tableify copied to clipboard

Add default styling to tables from node app

Open marwann opened this issue 6 years ago • 2 comments

Hi,

The command line --style parameter is very useful to me, but I'd like to use it from a .js file. Any clue how? Didn't find it in the doc.

Thanks

marwann avatar Jan 26 '19 15:01 marwann

I would like this feature too.

ysageev avatar May 27 '20 16:05 ysageev

Any time that I've included the default style.css in the output from inside a .js file, I've read it in beforehand and cached it.

const style = require('fs').readFileSync(__dirname + '/node_modules/tableify/style.css');

Or something similar.

Maybe on a future release I'll just read the style.css file in and attach it to the module as tableify.style or something.

wankdanker avatar May 27 '20 18:05 wankdanker