Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default styling to tables from node app #7

Open
marwann opened this issue Jan 26, 2019 · 2 comments
Open

Add default styling to tables from node app #7

marwann opened this issue Jan 26, 2019 · 2 comments

Comments

@marwann
Copy link

marwann commented Jan 26, 2019

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

@ysageev
Copy link

ysageev commented May 27, 2020

I would like this feature too.

@wankdanker
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants