{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"0788c178e1dad154b5292d2cc759ca33d127eac3","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-25.2.0-alpha.86.tgz","fileCount":7,"integrity":"sha512-+ctwuz+dvUx9Yzm0D9g6rwPcFzU4CC7pUy+ptjoWzsmG9LrsNrZKfBkvuecGXNEqYLLgJd7KXR00imTyrX3x+g==","signatures":[{"sig":"MEUCICQIqYLUIGByruCspA4TmGA5CkAYxj8X+UzWqv8f8SkhAiEA2Rk8jHy2GWOSl6dPhvLzU1U6uCQVjqLWJflpWoPi7l4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7089,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJee5HbCRA9TVsSAnZWagAAeFsQAIsuy+Iq70CHo6Qgn37k\nY62r/MIsX8ZALxh+CHZPnFSZxyjO4bAg2gpG2Rs9TLm9dgsBDK0lc1iMY74d\n/77lPEJ9cvh61VVS0KhZjy1HRM+413UJjhgOkjquBc8qlNzWtGvezFccLjxx\ni0Ye5CdFc/XGaX937HwV6prjQx8ct0jrwV2AmKLyIEAJIKu+3ClPUIraS86k\nwFVCAZvm2kGcDe5uQSZTYIfA0QREjtQSn3rP5DkRm7aCGMQWRM/NzLr9vrWO\n2iMgEVC8eqzeVF7SQGX+GwQvR7VNiTR6Oz0+mEyi8hySjuktL45iGU5yK/7N\njA6ANwRR+zeJLUYtnp9S8EOp+nts9PO2kDEh12to0PKUNOUlTeQMVG7fGcmr\nPJcDPdv7D8ctu4d5Dy0AzOVaJRaeADrZ79awrxM96zyYqBlCL18HjoWoT/I6\nj84QxZsNHB3RwaCHW5Mp5m/alHcOUkpMxTSNCh+xqBc1EN3tjbmaeF6+WbU8\n1Tq0hOCJt0HvmQlPUSdEFuepEgHuptFdwpGYMzOuSAEsx+vh4bnzhZKrXjdF\n63MkJ8GnMHAvUhFyTUKxkxYXlVDuPFRTREUNw6M7+y4OE5v0NtOmRX14AOiE\nGWtg3FitHSvKNn3zRtByUpLzJHvMhYhrHcKgN8bPfWhxWlPyehVzTkkB4Foy\nIXYV\r\n=1Rp/\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":"cd98198c9397d8b69c55155d7b224d62ef117a90","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"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/node":"*"},"_npmOperationalInternal":{"tmp":"tmp/jest-serializer_25.2.0-alpha.86_1585156571470_0.07145274544954616","host":"s3://npm-registry-packages"},"_id":"jest-serializer@25.2.0-alpha.86","version":"25.2.0-alpha.86"}