{"name":"rendy","version":"5.0.2","description":"simplest template engine","main":"./lib/rendy.js","exports":"./lib/rendy.js","type":"module","scripts":{"lint":"madrun lint","fix:lint":"madrun fix:lint","test":"madrun test","test:dts":"madrun test:dts","coverage":"madrun coverage","report":"madrun report"},"repository":{"type":"git","url":"git+https://github.com/coderaiser/rendy.git"},"keywords":["template","engine"],"author":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com","url":"http://coderaiser.github.io/"},"license":"MIT","bugs":{"url":"https://github.com/coderaiser/rendy/issues"},"homepage":"https://github.com/coderaiser/rendy","devDependencies":{"check-dts":"^1.0.0","currify":"^4.0.0","eslint":"^10.0.0","eslint-plugin-n":"^17.24.0","eslint-plugin-putout":"^31.0.0","madrun":"^13.0.0","putout":"^42.0.5","superc8":"^12.3.1","supertape":"^12.5.0","try-catch":"^4.0.9"},"engines":{"node":">=22"},"publishConfig":{"access":"public"},"_id":"rendy@5.0.2","gitHead":"0f741e1de9e66ca7d3416205b0ad6fd2a6fe8801","types":"./lib/rendy.d.ts","_nodeVersion":"25.8.2","_npmVersion":"11.4.2","dist":{"integrity":"sha512-XwxPNiKC4AQBqW83cEJDuNaqCzqJvhZDXve4SOCJl1lMYYPUUH2cgn90+MFucsveRC8hqp4CuwcjCesdBHA4Ww==","shasum":"1f8f1c5580686dae506e6174d68971b4536860d5","tarball":"http://registry-npm.ywwl.com/rendy/download/rendy-5.0.2.tgz","fileCount":6,"unpackedSize":9334,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCKQpRhbzIOPzFGywJdxEtnPTD5xNy7uEjsfMx5k4ilfAIhAPsv85pRdhUc5+GqY5VW9e+ez/zRzq91YtFzKfKJkhjm"}],"size":3823,"noattachment":false,"key":"/rendy/-/rendy-5.0.2.tgz"},"_npmUser":{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"},"directories":{},"maintainers":[{"name":"coderaiser","email":"mnemonic.enemy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rendy_5.0.2_1774807940688_0.4622366163839715"},"_hasShrinkwrap":false,"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&&stars&&downloadRank \"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&service=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\n```js\nimport {rendy} from '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) => 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) => a.join(', '),\n};\n\nrendy('hello {{ names | implode }}', values, modifiers);\n// returns\n'hello a, b, c';\n```\n\n## License\n\nMIT\n","publish_time":1774807940824,"_cnpm_publish_time":1774807940824,"dist-tags":{"latest":"5.0.2"}}