danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.83k stars 101 forks source link

API for programmatic use #72

Closed jakub300 closed 6 years ago

jakub300 commented 6 years ago

Hey, exports currently provide access only to parts of the library and are there only for testing purposes (per comment).

I'm wondering what do you think about API allowing simple use of source-map-explorer as a whole. I imagine it as a method that accepts buffers or files and returns html of the report (or other thing based on options).

danvk commented 6 years ago

I'd be fine with that. Is your proposal just to remove that comment?

jakub300 commented 6 years ago

More than that because current exports don't allow to do everything (they are not equivalent of what cli allows). I will try to prepare something this week, maybe tomorrow.