{"dist":{"shasum":"9477e40fe5aae17fa0aede803735a6e55812d65f","tarball":"https://registry.npmjs.org/jest-serializer/-/jest-serializer-23.0.0-beta.1.tgz","fileCount":6,"integrity":"sha512-XrU136UrTyPEZ+RwUvzKDAIKUSnHf6cyRhlcE8i7JpourXIIJnTFN07D79xfUUcrIa1yFL/oNxggWsPwmM7QcA==","signatures":[{"sig":"MEUCIQC0J9XcdNla9jtuQMZ0mCOLQCltvOeuP57h50/rAEeQJAIgIyE77oPYHYXlPqRBwI6ZbwJjCtPsjZI9QAJ9xpWaRF4=","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\nwsFcBAEBCAAQBQJa21xXCRA9TVsSAnZWagAACO4P/01fNK7m70Ke/f5AEP5F\ndRAaT03yVMCXDF+YeR7JaE2dz90TzUglo0HQvj8FzjNmXE1ruGaTcnnzPo73\nRiEveLy6/9TuiJGzpycB8FYCVu0RuCD7Gyzh0f9Hxx/NpB7TdS3xR06f1v21\n90rWyF9G6Nt2Xg/jPAS82IYpUVKBbY0RQPgHlIW46kJ+nIoW0GFg4+PPWPxQ\nUD9UKI6cislrxMN8eGTIopof4NtpexWItt6/TNoSVZoPbhXrn7CjNHxO6/I7\nrqcUFipd5Q8ftYTVx7AJz/HuPivwG/pWHKoWqHDTKEvwRUKTFKNqI1fYukP+\ncqpBYLDvM20mYYW6Kv1jULA/rPp8gDVq+Phk6eLdHiOWw128cOTZStwRi2mZ\n9nkcgE7Nqhg/wJwOFUuZ+fM6VjJJUD6O5X4XZKDlx3PAWXW/Yw15yEwVc7Hi\nMkmSwGDgWYPrqt5dQGzj258dQEnq5qqpHsEyXG8KYpP7bz+A9+b3ew9UWtJL\nh22XZHeUN0tAK2/qkS9vE5urYkcr/jE1g+bm/21hvAJU7LOhnW5WZOMCeCit\niJLia1laLEDgpNtqhsQkV36JAcadBxc5eVqxbMynCHUQ5rflBmm63vx1wmha\nPhEELdnSGDUazJrJ+shUnCKmVDkKWuTOhZ1EsngM9/OATdM7CeABQrohtwMo\nahKl\r\n=tZLO\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.1_1524325463560_0.03918240663492201","host":"s3://npm-registry-packages"},"_id":"jest-serializer@23.0.0-beta.1","version":"23.0.0-beta.1"}