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
Enable verbosity in runCommands #233
Comments
If you're using mapshaper as a node module, console logging is not enabled by default. You have to enable it like this:
With logging enabled, you should see the default set of console messages, even without the Does this satisfy your use case? I'm not perfectly happy with the way the |
Thank you for the answer @mbloch!
The problem is that BTW thank you for this amazing tool, the project where i'm using it (geo-maps) is almost entirely based on it. What I mean with
|
File | Size |
---|---|
world-rivers.geo.json (GeometryCollection with a single MultiPolygon) | 48.8 MB |
world-seas.geo.json (GeometryCollection with a single MultiPolygon) | 39.3 MB |
world-lakes.geo.json (GeometryCollection with a single MultiPolygon) | 66.6 MB |
Problem
-verbose
flag does not show anything while usingrunCommands
.Ideas
It would be nice to add a callback to
runCommands
that is called each time a new message is generated by the verbosity instead of print it to the console.In that way we programmatically can show or not show certain messages to the user!
Use case
Show the progress of the command to the user.
Is that possible?
The text was updated successfully, but these errors were encountered: