{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"689d7c259c578c0f5be7c52f5e5650a7090a4e89","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.0.0.tgz","fileCount":7,"integrity":"sha512-ZwIR9GOdYK7E7nhqH+QJHznUN5NkRy1yRKWyAPfXeaQ20gTIaQi001sZX7GGkAyBpNf2f3mFcBD36vNefVU0yQ==","signatures":[{"sig":"MEQCIFEyfIf38/kIK6gTXCRDt3/mcdHtMIltGQBQhJomMBYwAiBkLN0fmWh2+xs0aoxo1p8rD3jgf9mNTXHE68FBr7/D8A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6709,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdXgrACRA9TVsSAnZWagAA5OcP/jzokZWTxIRZCNBE37Sy\no/C04ZNsnJhmwc0KRZwfqI3P87Wl8nVtccE1YFvCX2BAlGlUUqyzdcHNv18m\npWpoYn1xwuAQ3Y83b3L1nEtU8NjoBCr+c8hB8LbxMIuDgwLrQWy5oCI5D9C7\nJcLShhGJm69luW7bgS8N6EWhDPf64eEhhkTCKslhUdGb/KkVrcoSfNdIb/ub\no7NAenOCAZ1yEZwXHVCrldkBTQWSkVq7vngLt6sWCrmldn3Wb8vJmyqc/70w\no//ZwIRbR1Oi/NLoW1BFEXtKerlEWH0Onr2GU8d+DfNRY2xT5vJ7uy/t21W2\nNfFz+9YfdixYPpqhGs5uF0Qi//SvNtTNlSugndKiBjyJI5D7+0Xsi51ye3N3\nua5/lwkibeAhdtr9NHTDeJFYFuDeQDJaW7Bh9/ag/gAeyVd6ltWpb6eMfmJq\njkzyyb1Co6Viagd5irDnwtJfWA7kcXa92KbmfM9dJ26iP+ym0U95fo+RvTgN\nsdVtkKa3nI8LhclIjGuV4tp1W+82i4wQMaSYThoF5pxIeT3Lj53CFP45ioWe\nLEVVpOY+lZ0bnQ1v/9mJ1W7H4DTh/Df1whxa/FEv2Lpf1vG/5JDJg3HopKqj\n7qTWW2DYFuaDDJUMUjg9jSwp2xee8/1KegGS3BfQiR/VRu9T8B5H42D83VD0\ny5rF\r\n=3KOP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","name":"jest-serializer","types":"build/index.d.ts","readme":"# jest-serializer\n\nModule for serializing and deserializing object into memory and disk. By default, the `v8` implementations are used, but if not present, it defaults to `JSON` implementation. Both serializers have the advantage of being able to serialize `Map`, `Set`, `undefined`, `NaN`, etc, although the JSON one does it through a replacer/reviver.\n\n## Install\n\n```sh\n$ yarn add jest-serializer\n```\n\n## API\n\nThree kinds of API groups are exposed:\n\n### In-memory serialization: `serialize` and `deserialize`\n\nThis set of functions take or return a `Buffer`. All the process happens in memory. This is useful when willing to transfer over HTTP, TCP or via UNIX pipes.\n\n```javascript\nimport {deserialize, serialize} from 'jest-serializer';\n\nconst myObject = {\n  foo: 'bar',\n  baz: [0, true, '2', [], {}],\n};\n\nconst buffer = serialize(myObject);\nconst myCopyObject = deserialize(buffer);\n```\n\n### Synchronous persistent filesystem: `readFileSync` and `writeFileSync`\n\nThis set of functions allow to send to disk a serialization result and retrieve it back, in a synchronous way. It mimics the `fs` API so it looks familiar.\n\n```javascript\nimport {readFileSync, writeFileSync} from 'jest-serializer';\n\nconst myObject = {\n  foo: 'bar',\n  baz: [0, true, '2', [], {}],\n};\n\nconst myFile = '/tmp/obj';\n\nwriteFileSync(myFile, myObject);\nconst myCopyObject = readFileSync(myFile);\n```\n","engines":{"node":">= 8"},"gitHead":"ff9269be05fd8316e95232198fce3463bf2f270e","license":"MIT","_npmUser":{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},"homepage":"https://github.com/facebook/jest#readme","repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-serializer"},"_npmVersion":"lerna/3.16.4/node@v11.12.0+x64 (darwin)","description":"Module for serializing and deserializing object into memory and disk. By default, the `v8` implementations are used, but if not present, it defaults to `JSON` implementation. Both serializers have the advantage of being able to serialize `Map`, `Set`, `un","directories":{},"maintainers":[{"name":"cpojer","email":"christoph.pojer@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"jeanlauliac","email":"jean@lauliac.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"}],"_nodeVersion":"11.12.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_25.0.0_1566444224056_0.28170960818304014","host":"s3://npm-registry-packages"},"_id":"jest-serializer@25.0.0","version":"25.0.0"}