key-path-mirror
Similar to keymirror but supports nested objects, built with TypeScript.
§ Installation
$ npm i key-path-mirror# or $ yarn add key-path-mirror
§ Usage
keyPathMirrorobj: object, prefix?: string
§ Examples
console.assert JSON.stringifykeyPathMirrornestedObject === JSON.stringifyexpectedKeyPathMirroredObject // no errors :)
console.assert JSON.stringifykeyPathMirrornestedObject, prefix === JSON.stringifyexpectedPrefixedKeyPathMirroredObject // no errors :)