-
Notifications
You must be signed in to change notification settings - Fork 11
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
serializeTaxonomy txt error #42
Comments
Yes, this is wrongly documented. The options = { chalk: require('chalk') }
serializeTaxonomy.txt(taxonomy, process.stdout, options) I'm not happy with this but unsure how to provide better. Coloring depends on the output format, e.g. for HTML and CSS classes I use:
What are the use cases? |
My use case was to display the txt result/command line output on a web view, because I think the it is nice enough and do not want to parse json again. |
I can satisfy my use case by learning how you are processing this in the web app example. Feel free to resolve this issue. |
serializeTaxonomy.txt(taxonomy, process.stdout, { colors: true });
has error
I believe the error traces to (wikidata-taxonomy/lib/serialize-txt.js:24:25) where it is looking for env.chalk but none is specified.
The text was updated successfully, but these errors were encountered: