{"id":16052282,"url":"https://github.com/nicolashov/mouchetasse","last_synced_at":"2026-05-09T09:53:00.152Z","repository":{"id":59145055,"uuid":"531146111","full_name":"NicolasHov/mouchetasse","owner":"NicolasHov","description":"🪰☕️ Minimalist templating tool for TypeScript :{","archived":false,"fork":false,"pushed_at":"2024-02-03T17:29:46.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T15:13:48.097Z","etag":null,"topics":["jest","nodejs","templating-engine","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/NicolasHov.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}},"created_at":"2022-08-31T15:31:30.000Z","updated_at":"2022-09-01T16:09:38.000Z","dependencies_parsed_at":"2024-02-03T18:32:27.659Z","dependency_job_id":"2c17d6b6-f934-4e08-a6fb-db880058e2ed","html_url":"https://github.com/NicolasHov/mouchetasse","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"927e2b6022764f7fd1c16db5a2f297b2954fb469"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasHov%2Fmouchetasse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasHov%2Fmouchetasse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasHov%2Fmouchetasse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NicolasHov%2Fmouchetasse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NicolasHov","download_url":"https://codeload.github.com/NicolasHov/mouchetasse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247301257,"owners_count":20916476,"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":["jest","nodejs","templating-engine","typescript"],"created_at":"2024-10-09T01:08:31.510Z","updated_at":"2026-05-09T09:53:00.084Z","avatar_url":"https://github.com/NicolasHov.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪰☕️ Mouchetasse `{`\n\n[![npm version](https://badge.fury.io/js/mouchetasse.svg)](https://badge.fury.io/js/mouchetasse)\n\n_Minimalist templating tool for TypeScript_\n\n\n## Get started \n\nInstall the package:\n\n```\nnpm install mouchetasse\n```\n\n## Quick start example\n\n- `index.ts`:\n\n```ts\nimport { readFileSync } from 'fs'\nimport compile from 'mouchetasse'\n\nconst express = require('express')\nconst app = express()\nconst port = 3000\n\napp.get('/', (req, res) =\u003e {\n    const html = readFileSync(\"index.html\", { encoding: \"utf8\" })\n    const data = { name: \"Dragon\", hobby: \"fly\"}\n    res.send(compile(html, data))\n})\n\napp.listen(port, () =\u003e {\n    console.log(`Example app listening on port http://localhost:${port}`)\n})\n```\n\n- `index.html`:\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003cbody\u003e\n    \u003ch1\u003eHello {{name}}, do you {{hobby}}?\u003c/h1\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n- Result :\n\n```\nHello Dragon, do you fly?\n```\n\n## Unit tests\n\nRun the test:\n\n```\nnpm jest\n```\n\n\n## ROADMAP\n\n  - Add conditionnals\n  \n  - make it work for mardkown...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolashov%2Fmouchetasse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolashov%2Fmouchetasse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolashov%2Fmouchetasse/lists"}