YYsuni / react18-json-view

JSON viewer for react18
https://jv.yysuni.com/
MIT License
236 stars 15 forks source link

Feature Request: truncate long strings to the collapse length provided #9

Open CamdenFoucht opened 10 months ago

CamdenFoucht commented 10 months ago

When using string collapse, it transforms a very long string into a very short "wha...od" instead of shortening the string to the collapse length provided (i.e 99) such as seeing a more meaningful string: what is going on with...

It would be great if we could control this shortening behavior, or have some way to choose!

YYsuni commented 10 months ago

Your idea is great! I'll update it soon.😀

YYsuni commented 9 months ago

Hi, the latest canary version now supports the truncation feature. You can try it out by running npm i react18-json-view@canary. Before that, you could test it on https://jv.yysuni.com/ 😁

YYsuni commented 9 months ago

It's available on v0.2.5 now 🙌