| | |
| | | |
| | | ## Why? |
| | | |
| | | Please note that `destr` is little bit slower when parsing a standard JSON string mainly because of transform to avoid [prototype pollution](https://hueniverse.com/a-tale-of-prototype-poisoning-2610fa170061) which can lead to serious security issues if not being sanetized. In the other words, `destr` is better when input is not always a json string or from untrsuted source like request body. |
| | | Please note that `destr` is little bit slower when parsing a standard JSON string mainly because of transform to avoid [prototype pollution](https://hueniverse.com/a-tale-of-prototype-poisoning-2610fa170061) which can lead to serious security issues if not being sanitized. In the other words, `destr` is better when input is not always a json string or from untrusted source like request body. |
| | | |
| | | **Fast fallback to input if is not string:** |
| | | |
| | |
| | | [npm-d-src]: https://img.shields.io/npm/dm/destr?style=flat-square |
| | | [npm-d-href]: https://npmjs.com/package/destr |
| | | |
| | | [github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/destr/ci/master?style=flat-square |
| | | [github-actions-href]: https://github.com/nuxt-contrib/destr/actions?query=workflow%3Aci |
| | | [github-actions-src]: https://img.shields.io/github/workflow/status/unjs/destr/ci/master?style=flat-square |
| | | [github-actions-href]: https://github.com/unjs/destr/actions?query=workflow%3Aci |
| | | |
| | | [bundlephobia-src]: https://img.shields.io/bundlephobia/min/destr?style=flat-square |
| | | [bundlephobia-href]: https://bundlephobia.com/result?p=destr |