{"id":19874028,"url":"https://github.com/metarhia/tickplate","last_synced_at":"2025-05-02T10:30:51.835Z","repository":{"id":16706301,"uuid":"80476139","full_name":"metarhia/tickplate","owner":"metarhia","description":"Back-tick template engine for JavaScript 💬","archived":false,"fork":false,"pushed_at":"2024-09-03T20:45:33.000Z","size":358,"stargazers_count":33,"open_issues_count":3,"forks_count":1,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-13T11:40:28.293Z","etag":null,"topics":["console","format","formatter","html","impress","javascript","metarhia","nodejs","render","renderer","strings","template","templating","tick"],"latest_commit_sha":null,"homepage":"https://metarhia.com","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/metarhia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null},"funding":{"patreon":"tshemsedinov"}},"created_at":"2017-01-30T23:56:56.000Z","updated_at":"2024-09-03T20:45:39.000Z","dependencies_parsed_at":"2023-09-28T01:57:02.015Z","dependency_job_id":"912efed8-0c57-4d6e-ba79-f3b76d839b30","html_url":"https://github.com/metarhia/tickplate","commit_stats":{"total_commits":76,"total_committers":5,"mean_commits":15.2,"dds":"0.052631578947368474","last_synced_commit":"a7357efb5e85fcbf7a532238ae613116e0055f28"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Ftickplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Ftickplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Ftickplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metarhia%2Ftickplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metarhia","download_url":"https://codeload.github.com/metarhia/tickplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224306575,"owners_count":17289653,"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":["console","format","formatter","html","impress","javascript","metarhia","nodejs","render","renderer","strings","template","templating","tick"],"created_at":"2024-11-12T16:21:13.849Z","updated_at":"2024-11-12T16:21:14.673Z","avatar_url":"https://github.com/metarhia.png","language":"JavaScript","funding_links":["https://patreon.com/tshemsedinov"],"categories":[],"sub_categories":[],"readme":"## Tickplate - Back-tick templates for JavaScript\n\n[![ci status](https://github.com/metarhia/tickplate/workflows/Testing%20CI/badge.svg)](https://github.com/metarhia/tickplate/actions?query=workflow%3A%22Testing+CI%22+branch%3Amaster)\n[![codacy](https://api.codacy.com/project/badge/Grade/69719502402b43598ffac0fd35f2192c)](https://www.codacy.com/app/metarhia/tickplate)\n[![snyk](https://snyk.io/test/github/metarhia/tickplate/badge.svg)](https://snyk.io/test/github/metarhia/tickplate)\n[![npm version](https://badge.fury.io/js/tickplate.svg)](https://badge.fury.io/js/tickplate)\n[![npm downloads/month](https://img.shields.io/npm/dm/tickplate.svg)](https://www.npmjs.com/package/tickplate)\n[![npm downloads](https://img.shields.io/npm/dt/tickplate.svg)](https://www.npmjs.com/package/tickplate)\n\n## Usage\n\n- Install: `npm install tickplate`\n- Require: `const t = require('tickplate');`\n- Place tag `t` before templated string\n\n## Examples:\n\n```js\nconst t = require('tickplate');\n\nconst data = {\n  hello: 'Ave!',\n  myFriend: {\n    name: 'Marcus Aurelius',\n    toString() {\n      return this.name;\n    },\n  },\n  positions: ['emperor', 'philosopher', 'writer'],\n};\n\nconst templ = t`${'hello'} ${'myFriend'}, great ${'positions'} of Rome`;\n\nconsole.log(templ(data));\nconsole.log(templ(data, { delimiter: ', ' }));\n```\n\nWith default values provided (optionally):\n\n```js\nconst t = require('tickplate');\n\nconst data = {\n  greeting: 'Valē!',\n  person: {\n    name: 'Lucius Aurelius Verus',\n    toString() {\n      return this.name;\n    },\n  },\n  positions: ['brother', 'emperor', 'co-emperor'],\n  ruleFrom: 161,\n  ruleTo: 169,\n};\n\nconst templ = t`${'greeting='} ${'person=\"Marcus Aurelius\"'}, great ${'positions=[\"emperor\", \"philosopher\"]'} of Rome from ${'ruleFrom=161'} to ${'ruleTo=180'} AD`;\n\nconsole.log(templ(data));\n```\n\n## License \u0026 Contributors\n\nCopyright (c) 2017-2023 [Metarhia contributors](https://github.com/metarhia/tickplate/graphs/contributors).\nTickplate is [MIT licensed](./LICENSE).\\\nTickplate is a part of [Metarhia](https://github.com/metarhia) technology stack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetarhia%2Ftickplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetarhia%2Ftickplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetarhia%2Ftickplate/lists"}