{"id":20251594,"url":"https://github.com/coderaiser/rendy","last_synced_at":"2025-04-10T23:10:56.779Z","repository":{"id":24504410,"uuid":"27909958","full_name":"coderaiser/rendy","owner":"coderaiser","description":"simple template engine compatible with handlebars and mustache","archived":false,"fork":false,"pushed_at":"2023-10-12T08:01:05.000Z","size":74,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-02T21:37:51.405Z","etag":null,"topics":["hacktoberfest","handlebars","javascript","mustache","nodejs","render","template"],"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2014-12-12T07:21:59.000Z","updated_at":"2024-11-19T08:23:51.000Z","dependencies_parsed_at":"2023-10-12T17:18:01.463Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/rendy","commit_stats":{"total_commits":136,"total_committers":2,"mean_commits":68.0,"dds":0.3602941176470589,"last_synced_commit":"7fd43221a60bf59565cda89e54c3a5cfb330e126"},"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frendy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frendy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frendy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Frendy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/rendy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312130,"owners_count":21082638,"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":["hacktoberfest","handlebars","javascript","mustache","nodejs","render","template"],"created_at":"2024-11-14T10:11:06.373Z","updated_at":"2025-04-10T23:10:56.758Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":[],"sub_categories":[],"readme":"# Rendy [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]\n\n[NPM_INFO_IMG]: https://nodei.co/npm/rendy.png?downloads\u0026\u0026stars\u0026\u0026downloadRank \"npm install rendy\"\n[NPMIMGURL]: https://img.shields.io/npm/v/rendy.svg?style=flat\n[BuildStatusURL]: https://github.com/coderaiser/rendy/actions/workflows/nodejs.yml \"Build Status\"\n[BuildStatusIMGURL]: https://github.com/coderaiser/rendy/actions/workflows/nodejs.yml/badge.svg\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\n[NPMURL]: https://npmjs.org/package/rendy \"npm\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/coderaiser/rendy?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/rendy/badge.svg?branch=master\u0026service=github\n\nSimple template engine compatible with [handlebars](http://handlebarsjs.com \"Handlebars\") and [mustache](https://mustache.github.io \"Mustache\").\n\n## Install\n\n![NPM\\_INFO][NPM_INFO_IMG]\n\n`npm i rendy`\n\n## How to use?\n\nIn **ESM**\n\n```js\nimport rendy from 'rendy';\n```\n\nin **CommonJS**:\n\n```js\nconst rendy = require('rendy');\n```\n\n### API\n\n#### rendy(template: string, value: Values, modifiers?: Modifiers)\n\n`Values` is:\n\n```ts\ntype Values = {\n    [key: string]: unknown;\n};\ntype Modifiers = {\n    [key: string]: (value: unknown) =\u003e string;\n};\n```\n\n```js\nrendy('hello {{ value }}', {\n    value: 'world',\n});\n\n// returns\n'hello world';\n\nconst values = {\n    names: ['a', 'b', 'c'],\n};\n\nconst modifiers = {\n    implode: (a) =\u003e a.join(', '),\n};\n\nrendy('hello {{ names | implode }}', values, modifiers);\n// returns\n'hello a, b, c';\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Frendy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Frendy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Frendy/lists"}