{"id":14967510,"url":"https://github.com/pugjs/js-stringify","last_synced_at":"2025-10-17T18:09:23.703Z","repository":{"id":24820799,"uuid":"28235265","full_name":"pugjs/js-stringify","owner":"pugjs","description":"Stringify an object so it can be safely inlined in JavaScript code","archived":false,"fork":false,"pushed_at":"2024-08-16T09:37:26.000Z","size":6,"stargazers_count":19,"open_issues_count":3,"forks_count":4,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-29T11:36:52.489Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/pugjs.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-12-19T15:45:17.000Z","updated_at":"2024-08-16T09:37:28.000Z","dependencies_parsed_at":"2024-08-23T14:34:59.767Z","dependency_job_id":null,"html_url":"https://github.com/pugjs/js-stringify","commit_stats":{"total_commits":6,"total_committers":2,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"fa9ae99cdd5aafe922864c043e924182e783f506"},"previous_names":["jadejs/js-stringify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fjs-stringify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fjs-stringify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fjs-stringify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pugjs%2Fjs-stringify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pugjs","download_url":"https://codeload.github.com/pugjs/js-stringify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237030237,"owners_count":19243756,"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-09-24T13:38:09.819Z","updated_at":"2025-10-17T18:09:18.659Z","avatar_url":"https://github.com/pugjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# js-stringify\n\nStringify an object so it can be safely inlined in JavaScript code\n\n[![Build Status](https://img.shields.io/travis/jadejs/js-stringify/master.svg)](https://travis-ci.org/jadejs/js-stringify)\n[![Dependency Status](https://img.shields.io/gemnasium/jadejs/js-stringify.svg)](https://gemnasium.com/jadejs/js-stringify)\n[![NPM version](https://img.shields.io/npm/v/js-stringify.svg)](https://www.npmjs.org/package/js-stringify)\n\n## Installation\n\n    npm install js-stringify\n\n## Usage\n\n```js\n\nvar assert = require('assert');\nvar stringify = require('js-stringify');\n\nassert(stringify('foo') === '\"foo\"');\nassert(stringify('foo\\u2028bar\\u2029baz') === '\"foo\\\\u2028bar\\\\u2029baz\"');\nassert(stringify(new Date('2014-12-19T03:42:00.000Z')) === 'new Date(\"2014-12-19T03:42:00.000Z\")');\nassert(stringify({foo: 'bar'}) === '{\"foo\":\"bar\"}');\nassert(stringify(undefined) === 'undefined');\nassert(stringify(null) === 'null');\nassert(\n  stringify({val: \"\u003c/script\u003e\u003cscript\u003ealert('bad actor')\u003c/script\u003e\"}) ===\n  '{\"val\":\"\\\\u003C\\\\u002Fscript\\\\u003E\\\\u003Cscript\\\\u003Ealert(\\'bad actor\\')\\\\u003C\\\\u002Fscript\\\\u003E\"}'\n);\n```\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpugjs%2Fjs-stringify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpugjs%2Fjs-stringify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpugjs%2Fjs-stringify/lists"}