{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"e18eb92f538938e0b08312c7283dc04c0fd0ee2e","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.0.0-alpha.16.tgz","fileCount":4,"integrity":"sha512-q8bOPzB8DTwWJ346DREITZWsTRRECXYFuvP/ik/cW9YSghTJqF8tcgYkfj1YcBlr8oIShO0ph7ffX4AtfkmCrA==","signatures":[{"sig":"MEYCIQD9uEj732d7Ys9DP5kpVkye8RJWJ8GzHFhi5iY9YwFUNwIhAKJTJOxdT2bU6xYfcAaDsX9TAe+uktrt7Og7TJ80K9j9","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcSxInCRA9TVsSAnZWagAAE4EQAIbuOLMBzQjz+7iD2WZU\n8YclE48Z+YiVI4fbEUnwegC9KFEYNlCecutIZX4osG+aEUZgqV6fCg4bCG/e\neK3oG2dXudwSPg6NfJmYMfkIbiYT+qJ6gBzD68tlXzqkTOiFFnTNd6iTlHIT\nop5BqlXzpQqRBj029BkDBWNBA5ogKW1ScZs8NcjNlXSzWFCPO6vWiPFRHXYD\n66XixR3D+bvAPeIkpbVFJTHi24ox5N6XgdaB2fo160Wh/VXdI49MZmy5vOEN\nrsVG6PyEP3LKetensIX1mzhAtBc1q8+KtXgRRagoiL34hPm5Fsz1lL2nnWrr\nAaI/BnYJqSD9vzOOkxXUyF4mCo/j2LOmaDzMwdssVGzxPFGdppjkj3/5S+4i\nYAoLt9jSlFji6X/3yRUaXx2HxpJ+3fdGYDN5SLhTYHvwAUUFIru1FOs8hy90\nek2aF9kmfzITd+0D3NVLLvVgRkdeuRryVEjWXxmcfpbOT/8oMJraulxwqiDJ\nyDCjkjy34em+wXmogw995Fe3u010xyQnHlXsap9n6UyQzTrJp3VDp/BTtpNk\npXeVENpKvB7pnsVWjCcul4fJFiZJWCd/1I/ioL7Ej60NmX8mKmitF8Sh/cu+\ntzurMKobtP4xHRkMBQ6fP/At76x8F4l46yDgFnAP+ZF6vWy6rE5ONtoW0qyQ\nRhDI\r\n=m6lj\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":"634e5a54f46b2a62d1dc81a170562e6f4e55ad60","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","directory":"packages/jest-serializer"},"_npmVersion":"lerna/3.10.5/node@v8.11.3+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":"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.16_1548423719118_0.32242276791194735","host":"s3://npm-registry-packages"},"_id":"jest-serializer@24.0.0-alpha.16","version":"24.0.0-alpha.16"}