{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"e506f720ee61797231a51c93707ced1cbf14c8be","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.2.0-alpha.0.tgz","fileCount":8,"integrity":"sha512-eZsOgxLgok9GNIcUZtktZ5CMll2l90IFkfKxLSkjd+Pva1m8h4yd+3y9XCAKDhQl1Nhe2kiPgTtCfD9fIN+D+w==","signatures":[{"sig":"MEUCIQDENcziQqZgo27jeOIYLOeJwv2XKrC+L7waByB8Rz+xYAIgDILHnSN+AVmBWIPS3Z1PUq+XvXnKJm8J/ZiP5jMfuHw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8787,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfou+CRA9TVsSAnZWagAAdD8P/jTUT7qjJWp11r1ouF0B\nyRew/CIzRBJcJOsTXYRIYok0gMUnUQ80lPjHF/4Yxt+0k5hYg6kHp12OLYsP\niSQ1KlCjhHI125YVnBUKAhcL3TLPuzZ6dhd1XVcxLtazoNaefL9lUVlfci2X\n9s2cyISpUVKz78vqz1erZeEt1/DzGqVeIbOW89G3QBm6s0HsTG6h1uXjimt+\n9UXQavbJgwCF15OXQ54+P7tvQab6XywAEmFbweRtWKGceOADViAeQJSQRY5/\nvmVklxrljF37aN/997UHo53JBZZrx5mjnk0TTNDaeJJczzMkorKU+snbSY30\nLcVV1hFSGf2M+LYbj8K2y1VGfJ/tT3TnNtsbYXxXbza4VSkZYRC0K7WPkP44\nsByA7t2AYinxlEmnFvJZ6NteOJr3v6Ic2M7NCIzcY/p6vf9c6IjzzJHeJfDO\n0Dn6yI5zaSmIdt0bL81rZ4rrCycnhUT6sJQqsDqZus4txDPez2lgfz5N2wT+\nLugy4iburkLU7X6tyfCvEnl/lfKNLRqBiV0URheOhUECJECPui0jxKtJ77z/\nGF1yEysl8WWMqm6B/9Zj1xSmOmPc0l8uOEHHNjiFQXbv5dfe77eE0sB+YgjY\nC9E34UqahqhzrwaEn2q/NdUyHWpM8WX6zqxBGrql1qSzQl6l3uXvwV+wKFlG\nNh0A\r\n=V3QX\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 {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":"800f2f803d01c8ae194d71b251e4965dd70e5bf2","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.13.1/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","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_24.2.0-alpha.0_1551797181947_0.596183985943852","host":"s3://npm-registry-packages"},"_id":"jest-serializer@24.2.0-alpha.0","version":"24.2.0-alpha.0"}