{"id":19773930,"url":"https://github.com/badoo/dust2jsx","last_synced_at":"2025-07-31T22:38:44.815Z","repository":{"id":57217254,"uuid":"133651743","full_name":"badoo/dust2jsx","owner":"badoo","description":"Convert Dust.js templates to JSX","archived":false,"fork":false,"pushed_at":"2023-03-08T01:32:46.000Z","size":149,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T03:51:04.695Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badoo.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-16T10:50:35.000Z","updated_at":"2022-07-13T17:30:29.000Z","dependencies_parsed_at":"2024-11-12T06:16:57.959Z","dependency_job_id":null,"html_url":"https://github.com/badoo/dust2jsx","commit_stats":{"total_commits":108,"total_committers":2,"mean_commits":54.0,"dds":0.0092592592592593,"last_synced_commit":"659837b916df63e365dc671ab6b0a836bbc13f6e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fdust2jsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fdust2jsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fdust2jsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fdust2jsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badoo","download_url":"https://codeload.github.com/badoo/dust2jsx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251761228,"owners_count":21639571,"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-12T05:11:32.572Z","updated_at":"2025-04-30T18:32:26.460Z","avatar_url":"https://github.com/badoo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dust2jsx\n\n\u003e Create JSX code from Dust template\n\n```html\n\u003cheader\u003e\n  {@Logo name=\"foo\" shadow=\"true\"/}\n\u003c/header\u003e\n\n{?title}\n  \u003ch1 class=\"title\"\u003e{title}\u003c/h1\u003e\n{/title}\n\n{#images}\n  \u003cimg src=\"{src}\"\u003e\n{/images}\n```\n\n### ➡️\n\n```js\n\u003cheader\u003e\n  \u003cLogo name=\"foo\" shadow=\"true\"/\u003e\n\u003c/header\u003e\n\n{title ?\n  \u003ch1 className=\"title\"\u003e{title}\u003c/h1\u003e\n : null}\n\n{images.map(item =\u003e\n  \u003cimg src=\"{item.src}\"\u003e\n)}\n```\n\n## Usage\n\n```js\nconst dust2jsx = require('dust2jsx');\n\ndust2jsx('\u003cinput type=\"checkbox\" {?checked}checked{/checked}/\u003e');\n// Outputs: \u003cinput type=\"checkbox\" {checked ? 'checked' : ''}/\u003e\n```\n\n### Parameters\n\n#### `externals`\n(Boolean)\n\nOutputs array of found referenced variables or Components. Optional. Default: `false`\n```js\ndust2jsc('\u003cheader\u003e\u003cLogo shadow=\"true\"/\u003e\u003c/header\u003e\u003cFoo bar /\u003e', { externals: true });\n// Outputs: ['Logo', 'Foo']\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fdust2jsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadoo%2Fdust2jsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fdust2jsx/lists"}