{"id":18256114,"url":"https://github.com/serapath/javascript-serialize","last_synced_at":"2026-05-04T05:35:09.738Z","repository":{"id":57279620,"uuid":"51950247","full_name":"serapath/javascript-serialize","owner":"serapath","description":"stringify all kinds of js values","archived":false,"fork":false,"pushed_at":"2016-02-18T19:10:36.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T19:01:42.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serapath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-17T19:46:32.000Z","updated_at":"2016-02-17T20:45:51.000Z","dependencies_parsed_at":"2022-09-26T20:22:00.071Z","dependency_job_id":null,"html_url":"https://github.com/serapath/javascript-serialize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fjavascript-serialize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fjavascript-serialize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fjavascript-serialize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serapath%2Fjavascript-serialize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serapath","download_url":"https://codeload.github.com/serapath/javascript-serialize/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247937161,"owners_count":21021206,"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":[],"created_at":"2024-11-05T10:20:05.182Z","updated_at":"2026-05-04T05:35:04.718Z","avatar_url":"https://github.com/serapath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# javascript-serialize\nstringify all kinds of js values\n\n\n## example\n```js\nvar javascriptserialize = require('javascript-serialize')\nvar Buffer = require('buffer').Buffer\n\nvar x = { leaf: 'leaf' }\nx['aCircle'] = x\n\nconsole.log(javascriptserialize(x))\nconsole.log(javascriptserialize(new Buffer(5)))\nconsole.log(javascriptserialize({a:'x', fn:function(x){return 5}}))\nconsole.log(javascriptserialize(new Date))\nconsole.log(javascriptserialize({a:'b',c:[1,2,3],x:{y:{z:['a',{b:'c'}]}}}))\nconsole.log(javascriptserialize(null))\nconsole.log(javascriptserialize(undefined))\nconsole.log(javascriptserialize(\"hey\"))\nconsole.log(javascriptserialize(false))\nconsole.log(javascriptserialize(true))\nconsole.log(javascriptserialize(function asdf () {}))\nconsole.log(javascriptserialize(12))\nconsole.log(javascriptserialize(/asdf/))\nconsole.log(javascriptserialize((function(){ return arguments })(1,true)))\nconsole.log(javascriptserialize([]))\nconsole.log(javascriptserialize(document.createElement('div')))\nconsole.log(javascriptserialize(NaN))\nconsole.log(javascriptserialize(new Error('Ups! Something wrong...')))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fjavascript-serialize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserapath%2Fjavascript-serialize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserapath%2Fjavascript-serialize/lists"}