prettiest
prettiest provides pretty-printing Debug and Display impls
for Javascript values in the wasm-bindgen crate.
[0.2.1] - 2020-10-18
- Output should be (more) stable across browser versions.
Changed
Prettifiedsorts object properties for each prototype before printing.Prettifiedprints functions for each prototype after the properties from that prototype and before the properties of the preceding prototype.
[0.2.0] - 2020-08-22
Added
Prettytrait offers a.pretty()method to anythingAsRef<JsValue>.PrettifiedimplementsDisplay.Prettified::skip_propertyallows deleting properties that aren't useful to print, liketimeStamp.
Fixed
- Cycles in objects are broken correctly.
- Null and undefined values are handled correctly.
- Values not explicitly handled are represented by
Pretty::Unknown. - Objects print properties from their prototype chain.
Changed
Prettyenum renamed toPrettifiedto allow trait to be namedPretty.- Objects print non-function properties before function properties.
- Objects print their properites in prototype-order.
- HTML elements, window and document all have abbreviated output.
[0.1.0] - 2020-08-20
Initial release. Only sort of works -- not recommended for use.