{"id":21689686,"url":"https://github.com/cesiumlabs/serialize_javascript","last_synced_at":"2026-04-17T02:33:55.619Z","repository":{"id":62421862,"uuid":"329075862","full_name":"CesiumLabs/serialize_javascript","owner":"CesiumLabs","description":"Deno version of serialize-javascript","archived":false,"fork":false,"pushed_at":"2021-01-12T18:38:05.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T20:54:12.705Z","etag":null,"topics":["deno","javascript","serialize-javascript","serializer","typescript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/serialize_javascript","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CesiumLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-12T18:25:34.000Z","updated_at":"2021-10-21T21:46:32.000Z","dependencies_parsed_at":"2022-11-01T17:32:02.325Z","dependency_job_id":null,"html_url":"https://github.com/CesiumLabs/serialize_javascript","commit_stats":null,"previous_names":["devsnowflake/serialize_javascript"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fserialize_javascript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fserialize_javascript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fserialize_javascript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fserialize_javascript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesiumLabs","download_url":"https://codeload.github.com/CesiumLabs/serialize_javascript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244616650,"owners_count":20482255,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","javascript","serialize-javascript","serializer","typescript"],"created_at":"2024-11-25T17:27:14.865Z","updated_at":"2025-12-11T21:07:16.227Z","avatar_url":"https://github.com/CesiumLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serialize JavaScript\nDeno version of **[serialize-javascript](https://npmjs.com/package/serialize-javascript)**.\n\n# Example\n\n```js\nimport { serialize, deserialize } from \"https://deno.land/x/serialize_javascript/mod.ts\";\n\nconst result = serialize({\n    str: 'string',\n    num: 0,\n    obj: { foo: 'foo' },\n    arr: [1, 2, 3],\n    bool: true,\n    nil: null,\n    undef: undefined,\n    inf: Infinity,\n    date: new Date(),\n    map: new Map([['hello', 'world']]),\n    set: new Set([123, 456]),\n    fn: function echo(arg: string) { return arg; },\n    re: /([^\\s]+)/g,\n    big: BigInt(10)\n})\n\nconsole.log(result);\n\nconst parsed = deserialize(result);\nconsole.log(parsed)\n\n```\n\n# Preview\n## First\n\n```js\n{\"str\":\"string\",\"num\":0,\"obj\":{\"foo\":\"foo\"},\"arr\":[1,2,3],\"bool\":true,\"nil\":null,\"undef\":undefined,\"inf\":Infinity,\"date\":new Date(\"2021-01-12T18:21:27.987Z\"),\"map\":new Map([[\"hello\",\"world\"]]),\"set\":new Set([123,456]),\"fn\":function echo(arg) { return arg; },\"re\":new RegExp(\"([^\\\\s]+)\", \"g\"),\"big\":BigInt(\"10\")}\n```\n\n## Second\n\n```js\n{\n  str: \"string\",\n  num: 0,\n  obj: { foo: \"foo\" },\n  arr: [ 1, 2, 3 ],\n  bool: true,\n  nil: null,\n  undef: undefined,\n  inf: Infinity,\n  date: 2021-01-12T18:21:27.987Z,\n  map: Map { \"hello\" =\u003e \"world\" },\n  set: Set { 123, 456 },\n  fn: [Function: echo],\n  re: /([^\\s]+)/g,\n  big: 10n\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fserialize_javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesiumlabs%2Fserialize_javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fserialize_javascript/lists"}