{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"11fedcbf3e35a4519a87f37f0f582e25fba702f5","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.2.1-alpha.1.tgz","fileCount":8,"integrity":"sha512-l7jEHx/nXgmvh/qBDbC0t/Uhb+iYtkUhkN/WMokJhKA40E/mqg2cclxy+507lIc3XMUUcG3zxXqtuHAnh/j4Ow==","signatures":[{"sig":"MEQCICOkZlQdjfrihCo4lpkHQi6Tt7GHIpjAGbRTzMuzzKaVAiB0H+LyfoXLLJ6+n0BuQclZsjq/R+/JmqSxYR5E42PdDA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8449,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefF+lCRA9TVsSAnZWagAAjEIQAKDMQBJPomuVdFyt515f\n5Uhgm5fX7baJ0rlimkDcLNx1MpN+qwrokQvcE358E27gApk7YZfyUTt54KqL\n0XQtJd2q0sLEHzn638cQ8tkeDL6IMej+Ci40dSZ4fl/vMJ3L3+5U2NKytf2D\npMcqSbktrxDJvD4qfr7Yo/Vl3gnLp2MkEITtJqaYSAfv6PCScSWimxmwYIdu\nOMSG5mdb4k9vozlEd0l7w4kY5N2qeY1HCcq856B3JxVoKlXxAC2RiaHDh9LG\nxQ/XIKr/ClKL8JdS4g/dT5V8ZpYrO2QNY38QEYFjgRy+DUB/6vLNocgLGJLo\nDzIkLHZojyDLhqb6RxD8nFa46NmOgP08aqlMN04alLTDcLkfYqclyc7yV6u6\n2MKT8dJA97DeyTryMPy/9CM5ba8Doe4exk5etJIVKBGw6dSrVGrU367+4mK9\nlBCBIbngKoGz82tec8gIq/YXEGUMVYUTVZ6yluZTo8F2OBHhjL5aRUCiTEik\nTuZU9Brujwfu0N9l+8cPJjuIzqwVonn4H3hV07ZULXNgiyYHL1rafRfW0pet\noExkH3uzlHUAXD/ge9VdnjL1osZjysS0eBaKP20XdiHQQfEtnAUkKjGdFGt5\nC2ZV7qT16t6MdEfYnohkAiWhTUVJg2kEEY9v/AjdcuO4nnbJpRfMLnKClf/N\nnikp\r\n=b/2p\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.3"},"gitHead":"5cc2ccdacb1b2433581222252e43cb5a1f6861a9","license":"MIT","_npmUser":{"name":"simenb","email":"sbekkhus91@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.20.2/node@v12.14.1+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":"davidzilburg","email":"davidzilburg@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"}],"_nodeVersion":"12.14.1","publishConfig":{"access":"public"},"typesVersions":{"<3.8":{"*":["ts3.4/*"]}},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-serializer_25.2.1-alpha.1_1585209253489_0.394555983320499","host":"s3://npm-registry-packages"},"_id":"jest-serializer@25.2.1-alpha.1","version":"25.2.1-alpha.1"}