{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"44478e6256f9e2b76a24cd56ba49923e33fe5522","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.0.0-alpha.12.tgz","fileCount":4,"integrity":"sha512-7Cfomo8PLwRcbFmOEXPAokb0+lCkmFUKOjP+XUvRz31JoLhrR+Ty5+CHjwZmtHBssdbAuK28lwMWX/XId9HhNw==","signatures":[{"sig":"MEUCIQDkIbSb6XVvvvENAyk92PUvQ+pODYMcvlVIIpNjNc6n1gIgCCdg01T0EB03/7+JhfeyaoyM3QAX6J4UqJPTTx6c7ho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOK+YCRA9TVsSAnZWagAABkAP+gK89SHCetU4zhen8F3G\n/N7AQg+DGYwjq2fxkC+iZZUxxBKbUYHu1LDcag8nky/YerNg33ZLDRyg+9/a\nR7hsi97dhdUB1XKf5nQUQvxDZCaoo72lwGCS2CIwFWVI9SoodbGCzgVEIoXG\nJGSzGfSmol5RKQJuRkTayhqEgAt3py6J0Anvh9fvyTvws4uppV314qpJMMaj\nIW4eBn84ADtGWPrAaR26KEFqA2Mq55DLuozZLl+lWDBrXgB1gC43PQ2xWvJ/\nR6AJROoLZAXC4tstM1WBXko7BtIom+1hR5mgx7bgPK6pg1QClmoaQQS/8P1K\nIZDatBA0pj0Aiob0Z4cIOo5RSGgxcNaMfFoRfeGxjDmTOV3BcOruMib22q4F\n7xP8UyFgXkStXyrXCZhNxv7mfJ+vLieemFSK4YRO3daozpe7HpMCXRWtBzv1\nGIdWHWV5dYY0QhDBMwKCn6RmLqxXjVqZyQKFDhakw2IaOWQfW5qhJgBaJzmS\nUYoUXtLlaUZNCV/lbW+wrFaMbOJ7KGD36EMhPHccY397E4TlJNv4zGpLnD1R\n6QgX0R+7jCP3nhEB31k0fJsBvoKTii7UPGTqrkwgd/YajMTZIQ2OPpGLmhY6\nsz8DLEHSu/CvvjO9ydgJUsn2fSDFcdwhcyl+SMkAOjhTIiJFYK+5G2X30UEy\n/zIA\r\n=SXQB\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","engines":{"node":">= 6"},"gitHead":"4f2bcb861d1f0fb150c05970362e52a38c31f67e","license":"MIT","_npmUser":{"name":"rubennorte","email":"rubennorte@gmail.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":"jeanlauliac","email":"jean@lauliac.com"},{"name":"mjesun","email":"mjesun@hotmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"}],"_nodeVersion":"8.11.3","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_24.0.0-alpha.12_1547218839739_0.1877227588400825","host":"s3://npm-registry-packages"},"_id":"jest-serializer@24.0.0-alpha.12","version":"24.0.0-alpha.12"}