{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"e70804ffa4f656d7731d47afc4e938c8f13c0255","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-28.0.0-alpha.2.tgz","fileCount":5,"integrity":"sha512-KxZGHOhvPEqHbXUrEgPDWNMS2DML/3GPbD4imdJ4j48KIkVtl2qaZ6OXpRC0u/qKGknFT7Q2Qv9A9J6GcZ/nVw==","signatures":[{"sig":"MEUCICrNstRhYGtFAqtm4rYIYmJ7TU6OuE2zXMAXBqb8HDkHAiEAm1MmPX0hQnCqrNWCVEIQwOY9p/QZHxaCtBBV/gyEcEc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDT5sCRA9TVsSAnZWagAA23oP/jDVX7zlaunnMrA/X5+F\ngGlWnMaWxwq7mAq2c4I4emywA2I63XrN8NFjINycli8/0eUbMFv8Gx21xuET\nsuV7MnPv4FajVwb9Vu+ySoLaoqFOEKkWJ9+l0EVsq0VaqyCQU7BlhlLARXAu\nTq2z9h9ky6RSHRxODrG64w9ZP7mELiK9YNAWRulXZyGJ9MG4qzeNFZKbY5G9\nuzHwV1pubxbw0qNaJuk2AgVFvCcmRCeU7x8/sOZH2f+Sq/gw3GB0brazubmT\nsAgpM6DSEzfgx9f+43cZqjfRfHsWN7YEOWIffD8Q44jd08bnX52uuAdayyH5\n2j623XIF/DFfXG/wKY7AdCAkp6s01ygvKXvzdt2R9LuNaZaBgiGzxOSwvcEf\nhjwRoK7XbRqRaf8HY/aoLCBQrZGkVFmk17TCKLTvFnRbl2wXoHmPoN/q900F\n5odRMqfBqGpK0WPd4xWuapEE9Z0yuuxvgFOSvFFQPJ395hg0z863pNx9sSby\nPFyf1R03N4/x+cZIfflal7RBhsb9cHjDLRhv2zLyx5dqNXBtdnxlRNLNQ5w/\nKADACWMV68YmHkou8r91ulU3K4dExo7FifPN2JZN1Gv7Tc62zETaopjPtCcC\nOBiDWJQlIeAg5DrlQ0iYaLF7pKF6Zz1hlh3zJYpMGZ8ZJcQiw2gzKy5w3iOE\nhAe9\r\n=QhJW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","name":"jest-serializer","types":"./build/index.d.ts","readme":"# jest-serializer\n\n> DEPRECATED: Use `v8` APIs directly: https://nodejs.org/api/v8.html#serialization-api\n\nModule for serializing and deserializing object into memory and disk. The Node core `v8` implementations are used. This seriializer have the advantage of being able to serialize `Map`, `Set`, `undefined`, `NaN`, etc..\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":"694d6bfea56f9cb49d0c7309cdbfff032da198c2","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":"> DEPRECATED: Use `v8` APIs directly: https://nodejs.org/api/v8.html#serialization-api","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.2_1645035116422_0.16715644698467114","host":"s3://npm-registry-packages"},"_id":"jest-serializer@28.0.0-alpha.2","version":"28.0.0-alpha.2"}