{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"3c6a33e974776a5d9d96d66f3ef16d111f16ad47","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-28.0.0-alpha.0.tgz","fileCount":5,"integrity":"sha512-50u6VopOGG4Ll1ZtvsdLhdxmBr0+49ZvYj1rp8m/rA64S65nBfUKPVfb7vwk0F0hXBRp4pAQG6+k+EelARZ3EQ==","signatures":[{"sig":"MEYCIQCqtJ0mZGH/mDtqKiJhhpmHACiFO46AIQjcKnFGPAx4zAIhAJELCDhlnTglOHAX+/o6rEMX95e6quRLD2VApIQi9ZIr","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBVa2CRA9TVsSAnZWagAAsk4P/jStY+dZ9yqd9zznL7Cl\nf3X+jKAvlt6BqHsS/vfYbiF2MjUVq8rPuxZIl/t+qR3v+mw08tbfZB1xiu3g\nOF2JSzkogvvSRzyGoXG7igaL70O72mIojlqjmeuOmrzHz9WtSZMS96zBD6uH\nSoq0gx0at63FtIfV7BmvIvRe22R7ZHHkDTrfZ+LbkkM0DRt5vyzBcmN56LDX\nfa0+0/bau9orTvOnc2KWs3OYeRe8INnZYZlTOP2pT5LaWvlcdCJgvG76j2d5\nnDZpZZ2VID92RWREHcIQK2DzTqBIv5qWJphDzRDZQ/GaQ2Ma9uAK2TpMdAbW\nPQ170CfW1puKYuqRf4OSaqAFlH+OLYcvFg9YysX/yi88do8/UP3VPjzsiS+Y\nxAumx19St9yE0AKbdlejvq+RNLkL5/lR3Gn2fhCuNIIXuTd7YZ1vGJ8tkZGT\n01vz38HU9edzqsnneUIjbXLMGzUFZTxH/rNK0ZU7p51nOiwPvSvoSctuG6k2\nWy3RiF5y3ZXWmvhJsCtHkUt/18Wrg1xpvHHkBItlt7d0Uf6pPlDh9GI20njr\n+rmBhuNGAJ9i0Xb+kTvDVoFZgtBtun69ScXk04+hW5EUEJwgQTdrVCs92Wvf\nmlP9OOLaGHj84CQQtH5GmlvU/bFYP2rQeFLMe3+vIP1dki+/HgnJ3+8mB2x/\nzggt\r\n=9CWs\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":"^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"},"exports":{".":{"types":"./build/index.d.ts","default":"./build/index.js"},"./package.json":"./package.json"},"gitHead":"89275b08977065d98e42ad71fcf223f4ad169f09","license":"MIT","_npmUser":{"name":"simenb","email":"sbekkhus91@gmail.com"},"homepage":"https://github.com/facebook/jest#readme","deprecated":"Use v8.serialize and v8.deserialize directly","repository":{"url":"git+https://github.com/facebook/jest.git","type":"git","directory":"packages/jest-serializer"},"_npmVersion":"lerna/4.0.0/node@v16.14.0+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":"scotthovestadt","email":"scott.hovestadt@gmail.com"},{"name":"rubennorte","email":"rubennorte@gmail.com"},{"name":"simenb","email":"sbekkhus91@gmail.com"},{"name":"fb","email":"opensource+npm@fb.com"},{"name":"davidzilburg","email":"davidzilburg@gmail.com"}],"_nodeVersion":"16.14.0","dependencies":{"@types/node":"*","graceful-fs":"^4.2.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"@types/graceful-fs":"^4.1.3"},"_npmOperationalInternal":{"tmp":"tmp/jest-serializer_28.0.0-alpha.0_1644517046217_0.908584173702186","host":"s3://npm-registry-packages"},"_id":"jest-serializer@28.0.0-alpha.0","version":"28.0.0-alpha.0"}