{"_id":"@types/serialize-javascript","_rev":"3432098","name":"@types/serialize-javascript","description":"TypeScript definitions for serialize-javascript","dist-tags":{"latest":"5.0.4","ts2.0":"1.5.0","ts2.1":"1.5.0","ts2.2":"1.5.0","ts2.3":"1.5.0","ts2.4":"1.5.0","ts2.5":"1.5.0","ts2.6":"1.5.0","ts2.7":"1.5.0","ts2.8":"1.5.0","ts2.9":"1.5.0","ts3.0":"4.0.0","ts3.1":"4.0.0","ts3.2":"4.0.0","ts3.3":"5.0.0","ts3.4":"5.0.0","ts3.5":"5.0.0","ts3.6":"5.0.1","ts3.7":"5.0.1","ts3.8":"5.0.2","ts3.9":"5.0.2","ts4.0":"5.0.2","ts4.1":"5.0.2","ts4.2":"5.0.2","ts4.3":"5.0.2","ts4.4":"5.0.2","ts4.5":"5.0.4","ts4.6":"5.0.4","ts4.7":"5.0.4","ts4.8":"5.0.4","ts4.9":"5.0.4","ts5.0":"5.0.4","ts5.1":"5.0.4","ts5.2":"5.0.4","ts5.3":"5.0.4","ts5.4":"5.0.4","ts5.5":"5.0.4","ts5.6":"5.0.4","ts5.7":"5.0.4"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2024-08-27T19:20:19.000Z","created":"2017-03-29T18:33:00.806Z","5.0.4":"2023-11-07T16:20:26.591Z","5.0.3":"2023-10-18T14:41:45.834Z","5.0.2":"2021-12-24T00:28:58.241Z","5.0.1":"2021-07-06T16:58:14.496Z","5.0.0":"2020-12-03T21:21:03.724Z","4.0.0":"2020-07-16T04:04:02.594Z","1.5.0":"2018-10-15T18:00:40.257Z","1.3.2":"2017-10-25T16:24:12.785Z","1.3.1":"2017-03-31T18:07:54.423Z","1.3.0":"2017-03-29T18:33:00.806Z"},"users":{},"repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"versions":{"5.0.4":{"name":"@types/serialize-javascript","version":"5.0.4","description":"TypeScript definitions for serialize-javascript","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript","license":"MIT","contributors":[{"name":"Pochodaydayup","githubUsername":"Pochodaydayup","url":"https://github.com/Pochodaydayup"},{"name":"undefined-moe","githubUsername":"undefined-moe","url":"https://github.com/undefined-moe"},{"name":"Piotr Błażejewicz","githubUsername":"peterblazejewicz","url":"https://github.com/peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"3abaaafcacc0af1fd8b9c36b0b0dc1e01c973040edca90614cd1176a61df38d3","typeScriptVersion":"4.5","_id":"@types/serialize-javascript@5.0.4","dist":{"shasum":"7a7c32248e207a0d29afed88e5ee3e921999c73d","size":2274,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-5.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-5.0.4.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_5.0.4_1699374026409_0.3370935717291492"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-11-07T16:20:26.591Z","publish_time":1699374026591,"_source_registry_name":"default","_cnpm_publish_time":1699374026591},"5.0.3":{"name":"@types/serialize-javascript","version":"5.0.3","description":"TypeScript definitions for serialize-javascript","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript","license":"MIT","contributors":[{"name":"Pochodaydayup","githubUsername":"Pochodaydayup","url":"https://github.com/Pochodaydayup"},{"name":"undefined-moe","githubUsername":"undefined-moe","url":"https://github.com/undefined-moe"},{"name":"Piotr Błażejewicz","githubUsername":"peterblazejewicz","url":"https://github.com/peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"9dbfa1eec3a7dd476f43db6fea381747f8f46a62311535bb968a2ab8ea08cc2b","typeScriptVersion":"4.5","_id":"@types/serialize-javascript@5.0.3","dist":{"shasum":"daee5bc238195d2db6f0bb3a6e99b0ccb2448bfc","size":2273,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-5.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-5.0.3.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_5.0.3_1697640105599_0.8481273462092074"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-18T14:41:45.834Z","publish_time":1697640105834,"_source_registry_name":"default","_cnpm_publish_time":1697640105834},"5.0.2":{"name":"@types/serialize-javascript","version":"5.0.2","description":"TypeScript definitions for serialize-javascript","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript","license":"MIT","contributors":[{"name":"Pochodaydayup","url":"https://github.com/Pochodaydayup","githubUsername":"Pochodaydayup"},{"name":"undefined-moe","url":"https://github.com/undefined-moe","githubUsername":"undefined-moe"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"83529c9117009e3654bb0a89d1aed70a5d5f54bddeb92871d165deb0055d164a","typeScriptVersion":"3.8","_id":"@types/serialize-javascript@5.0.2","dist":{"shasum":"c4b29f763e407def2502c9dfcc0b8c4c96ef0387","size":2304,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-5.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-5.0.2.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_5.0.2_1640305737880_0.5727178254457213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-25T23:41:12.432Z","publish_time":1640305738241,"_cnpm_publish_time":1640305738241},"5.0.1":{"name":"@types/serialize-javascript","version":"5.0.1","description":"TypeScript definitions for serialize-javascript","homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g","githubUsername":"lith-light-g"},{"name":"Pochodaydayup","url":"https://github.com/Pochodaydayup","githubUsername":"Pochodaydayup"},{"name":"undefined-moe","url":"https://github.com/undefined-moe","githubUsername":"undefined-moe"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"ce7049f2c109fca4ce0d36072687891b9562d58a24779bd26390629a31ab789d","typeScriptVersion":"3.6","_id":"@types/serialize-javascript@5.0.1","dist":{"shasum":"2c32e0626734a02a83b94cb924699c4bdcb6fd94","size":2362,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-5.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-5.0.1.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_5.0.1_1625590694334_0.7065640362019194"},"_hasShrinkwrap":false,"publish_time":1625590694496,"_cnpm_publish_time":1625590694496,"_cnpmcore_publish_time":"2021-12-16T13:58:31.129Z"},"5.0.0":{"name":"@types/serialize-javascript","version":"5.0.0","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g","githubUsername":"lith-light-g"},{"name":"Pochodaydayup","url":"https://github.com/Pochodaydayup","githubUsername":"Pochodaydayup"},{"name":"undefined-moe","url":"https://github.com/undefined-moe","githubUsername":"undefined-moe"},{"name":"Piotr Błażejewicz","url":"https://github.com/peterblazejewicz","githubUsername":"peterblazejewicz"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"e9be6712d5278723fb22e7f65a51161f7f9b807f20a48ef2ef0d74408d0b345b","typeScriptVersion":"3.3","_id":"@types/serialize-javascript@5.0.0","dist":{"shasum":"127638567bd9f11251ad0ca2d9d9ea9ce5ca4b93","size":2290,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-5.0.0.tgz"},"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"maintainers":[{"name":"types","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_5.0.0_1607030463576_0.7202208343529983"},"_hasShrinkwrap":false,"publish_time":1607030463724,"_cnpm_publish_time":1607030463724,"_cnpmcore_publish_time":"2021-12-16T13:58:31.401Z"},"4.0.0":{"name":"@types/serialize-javascript","version":"4.0.0","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g","githubUsername":"lith-light-g"},{"name":"Pochodaydayup","url":"https://github.com/Pochodaydayup","githubUsername":"Pochodaydayup"},{"name":"Undefined","url":"https://github.com/masnn","githubUsername":"masnn"}],"main":"","types":"index.d.ts","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git","directory":"types/serialize-javascript"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"a76d5154db054c46179297bf7953d37a55181319d471e56f1cada8c742bb44eb","typeScriptVersion":"3.0","_id":"@types/serialize-javascript@4.0.0","dist":{"shasum":"ab9c47edf71f6a4590221118d1dffc37b50d71a2","size":2207,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-4.0.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_4.0.0_1594872242463_0.1686310697915745"},"_hasShrinkwrap":false,"publish_time":1594872242594,"_cnpm_publish_time":1594872242594,"_cnpmcore_publish_time":"2021-12-16T13:58:31.620Z"},"1.5.0":{"name":"@types/serialize-javascript","version":"1.5.0","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g","githubUsername":"lith-light-g"},{"name":"Pochodaydayup","url":"https://github.com/Pochodaydayup","githubUsername":"Pochodaydayup"}],"main":"","types":"","repository":{"type":"git","url":"https://github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"c15190e3c68ed6e01073b9a7252b5ba4867f8a36655cc36906dfce10db7530a1","typeScriptVersion":"2.0","_id":"@types/serialize-javascript@1.5.0","dist":{"shasum":"bdd334cfbb4fc0eca1fc608da37ad733c86381eb","size":2080,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-1.5.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript_1.5.0_1539626440116_0.11110105660693614"},"_hasShrinkwrap":false,"publish_time":1539626440257,"_cnpm_publish_time":1539626440257,"_cnpmcore_publish_time":"2021-12-16T13:58:31.819Z"},"1.3.2":{"name":"@types/serialize-javascript","version":"1.3.2","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g","githubUsername":"lith-light-g"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"d314f51ff57b0494d42e1b9410289c80dc1d0a4edd6eeddd83bfa6cd40ddd4e5","typeScriptVersion":"2.0","_id":"@types/serialize-javascript@1.3.2","dist":{"shasum":"fba3efd1c28806921d4fba56709494e4511048d6","size":1917,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-1.3.2.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/serialize-javascript-1.3.2.tgz_1508948652726_0.654111469630152"},"directories":{},"publish_time":1508948652785,"_hasShrinkwrap":false,"_cnpm_publish_time":1508948652785,"_cnpmcore_publish_time":"2021-12-16T13:58:32.072Z"},"1.3.1":{"name":"@types/serialize-javascript","version":"1.3.1","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"a81ddfa9fc47427f7f5fa3c7f3a5ae1089c44dc61de94292f661bf55beba8705","typeScriptVersion":"2.0","_id":"@types/serialize-javascript@1.3.1","dist":{"shasum":"9ae324d5b07af5a35e83ab232fba88463e3432ba","size":1252,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-1.3.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/serialize-javascript-1.3.1.tgz_1490983674141_0.33586058276705444"},"directories":{},"publish_time":1490983674423,"_hasShrinkwrap":false,"_cnpm_publish_time":1490983674423,"_cnpmcore_publish_time":"2021-12-16T13:58:32.280Z"},"1.3.0":{"name":"@types/serialize-javascript","version":"1.3.0","description":"TypeScript definitions for serialize-javascript","license":"MIT","contributors":[{"name":"François Nguyen","url":"https://github.com/lith-light-g"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typesPublisherContentHash":"784ac05223ce343865d200191c1b538650d9d0da76b87a869e52fa542d071d55","typeScriptVersion":"2.0","_id":"@types/serialize-javascript@1.3.0","dist":{"shasum":"208c88a523e5f40fac879dff09de40243531242e","size":1253,"noattachment":false,"key":"/@types/serialize-javascript/-/@types/serialize-javascript-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/serialize-javascript/download/@types/serialize-javascript-1.3.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/serialize-javascript-1.3.0.tgz_1490812380581_0.2553484521340579"},"directories":{},"publish_time":1490812380806,"_hasShrinkwrap":false,"_cnpm_publish_time":1490812380806,"_cnpmcore_publish_time":"2021-12-16T13:58:32.488Z"}},"readme":"# Installation\r\n> `npm install --save @types/serialize-javascript`\r\n\r\n# Summary\r\nThis package contains type definitions for serialize-javascript (https://github.com/yahoo/serialize-javascript).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript/index.d.ts)\r\n````ts\r\ndeclare namespace serializeJavascript {\n    interface SerializeJSOptions {\n        /**\n         * This option is the same as the space argument that can be passed to JSON.stringify.\n         * It can be used to add whitespace and indentation to the serialized output to make it more readable.\n         */\n        space?: string | number | undefined;\n        /**\n         * This option is a signal to serialize() that the object being serialized does not contain any function or regexps values.\n         * This enables a hot-path that allows serialization to be over 3x faster.\n         * If you're serializing a lot of data, and know its pure JSON, then you can enable this option for a speed-up.\n         */\n        isJSON?: boolean | undefined;\n        /**\n         * This option is to signal serialize() that we want to do a straight conversion, without the XSS protection.\n         * This options needs to be explicitly set to true. HTML characters and JavaScript line terminators will not be escaped.\n         * You will have to roll your own.\n         */\n        unsafe?: true | undefined;\n        /**\n         * This option is to signal serialize() that we do not want serialize JavaScript function.\n         * Just treat function like JSON.stringify do, but other features will work as expected.\n         */\n        ignoreFunction?: boolean | undefined;\n    }\n}\n\n/**\n * Serialize JavaScript to a superset of JSON that includes regular expressions and functions.\n * @param input data to serialize\n * @param options optional object\n * @returns serialized data\n */\ndeclare function serializeJavascript(\n    input: any,\n    options?: serializeJavascript.SerializeJSOptions | number | string,\n): string;\n\nexport = serializeJavascript;\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Tue, 07 Nov 2023 15:11:36 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Pochodaydayup](https://github.com/Pochodaydayup), [undefined-moe](https://github.com/undefined-moe), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).\r\n","_attachments":{},"homepage":"https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/serialize-javascript","license":"MIT"}