{"bugs":{"url":"https://github.com/facebook/jest/issues"},"dist":{"shasum":"b63f2eba8d793785ed0db5739ed6aaa217e42396","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-24.0.0-alpha.7.tgz","fileCount":3,"integrity":"sha512-dsNUZDJE4PReylLcEcoFbNUg4B6ndO1GaPIDVV4YxqGyRZOse56ZojmPOMvIgxMvqY84XhRJEFGZY4n2KpXqtg==","signatures":[{"sig":"MEUCIQCnclcdaOElEUnOKQRHUMwarK61VWDQ/etpAuoThCXbPwIgVaSdmaIoAlkPZsXlzTLj19YTIjiRd/cc15UFM0MshiI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcD+DWCRA9TVsSAnZWagAAuYUP/0b6w6HcNa2w0dds+Tt3\nUHRJH0Ilqsh6zwUwZkHhdQDiETFn9nlBHHZguENFe3fsWbP8bdPrfD9m+awa\n5RvoK9zAckG5W4u/1pO6pu05CqXys84n7Gt9j5DD1wTKnRS+wqYOGZRA/gAB\ngjEHCghE4na960LJdgDsS49xEJ8Ccyr8Bv1Mu9OOEypUdeX2kWPyQQ3/x4Az\nhx31HufSjJKzwDEAZWDnTH9qQhcr+Jv5iqIQblwCWJSLQW4vFg0d4c6yojs8\n9mkT0Dnax9aYmx14gFNrKVrbtwOi1wHZy/06ilB872a3N6jzW/yDOA9+9MsF\nI9vzX5OaMbCbhcLuv6Q6X2yfFUFYGSl+ijyb2bZ4+BX72kBpjFcvBMt96myY\ngSrgAoZoRrxVwRS1uW5E6FpojuXPJIw8mHgD2GxUw42k/lkA3+8OZlUvnDBU\nocZqn++h5OSIYYDMIZ0/DytLU5qC7Uo1v1T+xnXiPqGj1skEmxb+1NNgdlMl\nNoyQlqIJOSZJKq5nmBpRwsNoBYFEHwa2a/fou2KgIiakT4zHInHsEfImTrjU\ny4Zv+vTgeqt5GZ1EQDmQHMxB3+2FRJlp+2p9GN8r8eBXrlFrCMRbNLQKxQDC\nQzH0gk9J6n9Gpb3sWUcooTveFrGjeDjXzjuaeTcU7L+UYdoXxm4gpNSAVvvK\nRgqX\r\n=P8b3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/index.js","name":"jest-serializer","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","gitHead":"4954f46708415174c48a58f296a605fbe1244a31","license":"MIT","_npmUser":{"name":"mjesun","email":"mjesun@hotmail.com"},"homepage":"https://github.com/facebook/jest#readme","repository":{"url":"git+https://github.com/facebook/jest.git","type":"git"},"_npmVersion":"5.6.0","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.10.0","_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_24.0.0-alpha.7_1544544469391_0.824167683479307","host":"s3://npm-registry-packages"},"_id":"jest-serializer@24.0.0-alpha.7","version":"24.0.0-alpha.7"}