{"dist":{"shasum":"152b40bea364bc14e936cfe9553451ef309805c0","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-23.0.0-beta.2.tgz","fileCount":6,"integrity":"sha512-tjoYeUu6xLqFo+gUJ26AP/KTRUDSi5AVG0i2AjlxK7ZllE10IBMEg2GAQJRTW6NQSYnC7WfvzxQ8A8yJ/7fT4A==","signatures":[{"sig":"MEUCIQCGlOCkD4b+FNI+1XUjBgUwFVjcDncSq2yYV8UnIRwFKwIgfX2+bdoWGiAsqnT2uX/cB59FMdtGcrGMu8NCZYJfwJw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6353,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4kHwCRA9TVsSAnZWagAAQV4P/jVpfEQprEGik89JQsx+\nIyMDt0e6D5iLzNRUxD317Xhsi1K2Kv5MxE/Z2CVSrSxTtptGid2jS+Bnw/XP\npHTAmHzo9EM7WXkWlRjubiLBaWARngVWLwrWVmW9Ws4udg4S/IshhzPSdJ8P\nxDgWhnt953cEt83vof6Gj+HOxHd/ptl7P0eoIiHmt5QUQL31HcrICj8eKuXQ\nQWyjSV1shFxi5kL1tWoMd6RTvVNuEM9YoK3GbN8ioDsS32Ft+0w+IGozOMQT\nOkd9oiiqFWKMMtdXnRir0ID5GhDmFJc1QqaiFJgfRaw3wbUra5eSwIUVVeVL\n6QS/iNLUViADpBX93RQ1vfcS1J4TSClLQ7SJvq6z/j0juXshuZiEuqBf+DdX\nDYlw9uq7Odot3AC+EKmrMGpYF/MEo2fhLOVw2GgbJ6dKWL0ktfZfASQiTLUz\ndkR+wX28aA9vfx8vrFCAkb/uafPgmiG/+tEO3tVvzhHGK8Y+vudSENvc2A5d\n3ljDfs+XS68koSaHNZxTJDff6GkM0GAgN0A1Bz0iCs/P/2y/QIOAG0g39VEW\nArjUbBEKbJTee9c/oa+qwZnHrcqTAHhuSQ4oYQ5iISZC9dgzJQYmlG40Ko5w\nfR1M7n8Xn1O3JApHlKWRv+VbNmvcOzM0+kM6i6YVkKeQU2kq/ZDXninnTTfI\nOvwK\r\n=nMTt\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\ndefault, the `v8` implementations are used, but if not present, it defaults to\n`JSON` implementation. Both serializers have the advantage of being able to\nserialize `Map`, `Set`, `undefined`, `NaN`, etc, although the JSON one does it\nthrough 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\nmemory. This is useful when willing to transfer over HTTP, TCP or via UNIX\npipes.\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\nit 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","license":"MIT","_npmUser":{"name":"mjesun","email":"mjesun@hotmail.com"},"repository":{"url":"https://github.com/facebook/jest.git","type":"git"},"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":"mjesun","email":"mjesun@hotmail.com"}],"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/jest-serializer_23.0.0-beta.2_1524777456328_0.07570555065171147","host":"s3://npm-registry-packages"},"_id":"jest-serializer@23.0.0-beta.2","version":"23.0.0-beta.2"}