{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"584f1b4f1868b683b003cfd113e5d0d88098cb3c","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-28.0.0-alpha.6.tgz","fileCount":5,"integrity":"sha512-QURI38XFgMh5NDrb+isOmOYT/p/SCFWmzQFb623JohL9dVWaWjLtex8VXc3DxKMi9bF9/mV3rLYYma6PJl1wvA==","signatures":[{"sig":"MEQCIHL7Fn4MXzmwRLBhzJWoV/seZx83H5+XwLpkPYt5ouEfAiA8q15ntzxaNnYxW2WsdDNletc3OB9SIn2JqxZHx1WE2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiHdoWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpywQ//cB7Y7OJDgvt63W8teyF+TVAyDjFcofyFj+C2G82v1IaY3khg\r\n3W4O7i6ptUdksv95D3AzEkAPcCfLYolojnZi+EvEaqIptDZvwtZ9eMITjFvO\r\nb4Mi77gh1EsaFyKmozqLZCb+FyxsW4XcpqpLjoYRRsWPuhhiixNW1reV4g0l\r\n1mEy+KHA8JnBizj7oeLYefQXx+xJvyOnvpYVInA1SEqACCi1uGdh9MXTS4jG\r\nFCY7hKoRsIb05XoaKtQe9Z2uYvcOKhGoMbG/sgFiSxl/NcX9gb6TC+z90Yfl\r\nlCWLFtMikJdZPUun3oZI/o0SvV5eeBpvdtlxEANR7U2RXUTS8O7YDesiCDjC\r\nZfTdFtSUnL//Er5sA9mKC9WZLXokH2JGq3TP32mAMB57nI/62nFKteH8l/l1\r\ngXQZ4xyWP2Ta1M5NQC1QjY9v3jn28tjggBuRoH5iIVXCskUFn4lGIiXeWr4j\r\nWPSBhFbOLByJBXzYrAminTO8Hi9xQVPJ86CE7HnZD1sZZnvqdYWv0tF75AIN\r\nDczI82Im7YRt1AGZAUofcqqPBX50ExP5icrqd0C5fb/GF0JK9RX1qgEQcrWU\r\nzFVVgbSpzsRgdgk2Hv4fY59J/p2bt/oAjzV8GW2j4a3v8hzJ9jNY+iG1pNVu\r\noSggMGhwCv0+jXM0asIA6Z/tPXsoMamzhV4=\r\n=Dgpd\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":"6284ada4adb7008f5f8673b1a7b1c789d2e508fb","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.6_1646123542317_0.16199334337608318","host":"s3://npm-registry-packages"},"_id":"jest-serializer@28.0.0-alpha.6","version":"28.0.0-alpha.6"}