Provides helper functions for safely handling circular-structure objects
npm install @kamikai/safe-circular-structureCurrent package version: 0.0.2
Coming soon
| Name | Type | Version | Description / Features |
|---|---|---|---|
| safeObject | Function | v0.0.1 | returns new object with same properties and prototype, though with circular structure properties redefined as non-enumerable property allows for JSON.stringify to be used on returned object allows exposure of internal / ownProperties such as Error.message and Error.stack |
| stringify | Function | v0.0.1 | Custom JSON stringifier function that uses safeObject for every Object value |
* stringify
* Identation
* With customizable ident-character
* Html Colorization or Console Colorization
* As XML
* As JavaScript
* As YAML
* Describe function
* Function name
* [Optional] Function body