{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"ba3931860a32b4d40b7ac7671d902ff46d14fe9b","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.0.0-alpha.0.tgz","fileCount":4,"integrity":"sha512-2XqL2bB5ijDczb2aLt7FEGqNEi42FL4UhcZ217oOJo+QNLrUaV0kY4bJcwwHGmDAVWQvX3jYiD2OWId4vvWOnA==","signatures":[{"sig":"MEQCIGstm7/AOvrW8Br5NO/zMOnojYmeh+DgDwDFzOOcLjc0AiBMsmd4Zp+8jkFF2A9yS4hWWPFqTsHDXB0q3GG72nLP4g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7563,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbyco4CRA9TVsSAnZWagAAHaMP/iRcdbnHMtu+DLEDgRnh\nR8sjeDpJwk43OzFILCaitKL9H2UEif+ZejeyvIIi6mYE8wMbCwwzCVw5+1us\nU26jPW+z88GyN8oZsdqP3pwfp86jplouZWpcChxVMbcWFupvzea5cK0Vhk4e\nLnRLMWL008fB+wsK81R1Ru0GqnStoU1/Qe9TO3LY5H/Icnr0Tq8IEAjyxIcQ\nnoWlG6kkT9c6vuBVwwl9dEOxotMIN1ibZIR0kLOSlkpqy7oCSU1q/TqI1dUH\nfllTDrv3KsoNbijnuKDhOh01XFbGflqwbfcKaNEcrqBgGgFBG09tT9zP6R5Q\n2rMGEDfWsCz1w7w+kvfG0FWmfwYymMMOplEDLf8jBnz/Tl0xebRsH/7pt+OD\nem+hBCBXVdDJXrxhaiRNeOaB+hsz/NLWUjSLyIfTMo4+EjX76IpK7EWhOV22\nHZCPKDGk7dOvf3XBS6rS5yAYjP+Wu60ib8hzr5ZDsXZkT9vOlJI/WriRA2lI\nNt3D0tyLS4TW1BTyW16LewfFzTvXjwTXke41JKe6ffJL6uqa9WfwIG4VHk+3\nmfwaNbjpkp6MF9JJnxuukGLjW3i196csiM1MKQGKQDUli64dZi91CEW+Yzsm\nRamXOOhtrVocEiqLEPo+nvfl63I5dzPKQn1ZeJ48O1mTGdVMcmGDYxqzs0gy\nNT17\r\n=ciX2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","name":"jest-serializer","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 {serialize, deserialize} 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","gitHead":"22f67d49ffcce7a5b6d6891438b837b3b26ba9db","license":"MIT","_npmUser":{"name":"mjesun","email":"mjesun@hotmail.com"},"homepage":"https://github.com/facebook/jest#readme","repository":{"url":"git+https://github.com/facebook/jest.git","type":"git"},"_npmVersion":"5.6.0","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":"mjesun","email":"mjesun@hotmail.com"}],"_nodeVersion":"8.10.0","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_24.0.0-alpha.0_1539951160263_0.0242185466043896","host":"s3://npm-registry-packages"},"_id":"jest-serializer@24.0.0-alpha.0","version":"24.0.0-alpha.0"}