{"id":15177203,"url":"https://github.com/segmentio/hbs-json","last_synced_at":"2025-10-01T16:31:00.285Z","repository":{"id":12288137,"uuid":"14914762","full_name":"segmentio/hbs-json","owner":"segmentio","description":"Handlebars helper for JSON.stringify","archived":true,"fork":false,"pushed_at":"2023-04-09T23:25:36.000Z","size":164,"stargazers_count":3,"open_issues_count":2,"forks_count":5,"subscribers_count":37,"default_branch":"master","last_synced_at":"2025-01-02T16:37:49.422Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/segmentio.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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":"2013-12-04T04:59:23.000Z","updated_at":"2023-10-16T15:03:15.000Z","dependencies_parsed_at":"2022-08-20T23:30:24.293Z","dependency_job_id":null,"html_url":"https://github.com/segmentio/hbs-json","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/segmentio%2Fhbs-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/segmentio","download_url":"https://codeload.github.com/segmentio/hbs-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234882621,"owners_count":18901301,"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-27T14:03:58.147Z","updated_at":"2025-10-01T16:30:54.999Z","avatar_url":"https://github.com/segmentio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hbs-json\n\n  Handlebars helper for `JSON.stringify`.\n\n## Installation\n\n    $ npm install hbs-json\n\n## Example\n\n```js\nvar json = require('hbs-json');\nvar hbs = require('hbs');\n\nhbs.registerHelper('json', json);\n\napp.get('/', function (req, res, next) {\n  res.render('index.html', { user: req.context.user });\n});\n```\n\n```html\n \u003cscript\u003e\n    window.user = {{{ json user }}}\n  \u003c/script\u003e\n```\n\n## API\n\n### json obj [escaped]\n\n  A handlebars helper for `JSON.stringify`. By default, will escape html characters so that you may use handlebars to render values to the template.\n\n\n## License\n\n```\nWWWWWW||WWWWWW\n W W W||W W W\n      ||\n    ( OO )__________\n     /  |           \\\n    /o o|    MIT     \\\n    \\___/||_||__||_|| *\n         || ||  || ||\n        _||_|| _||_||\n       (__|__|(__|__|\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fhbs-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsegmentio%2Fhbs-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsegmentio%2Fhbs-json/lists"}