{"id":16398611,"url":"https://github.com/antharuu/velvet","last_synced_at":"2025-03-23T05:30:58.820Z","repository":{"id":152115636,"uuid":"539695631","full_name":"antharuu/velvet","owner":"antharuu","description":"Velvet is a HTML preprocessor, converting Velvet language (PUGjs like) to HTML.","archived":true,"fork":false,"pushed_at":"2024-04-03T18:43:50.000Z","size":1804,"stargazers_count":1,"open_issues_count":10,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T22:32:19.944Z","etag":null,"topics":["customizable","fast","html","preprocessor","pug","template-engine-html","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/velvet-lang","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/antharuu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-09-21T21:44:26.000Z","updated_at":"2024-11-06T14:32:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"9036e6e9-8ab8-4be4-872d-23a071c1b967","html_url":"https://github.com/antharuu/velvet","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antharuu%2Fvelvet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antharuu%2Fvelvet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antharuu%2Fvelvet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antharuu%2Fvelvet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antharuu","download_url":"https://codeload.github.com/antharuu/velvet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245061382,"owners_count":20554563,"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":["customizable","fast","html","preprocessor","pug","template-engine-html","typescript"],"created_at":"2024-10-11T05:13:16.189Z","updated_at":"2025-03-23T05:30:58.467Z","avatar_url":"https://github.com/antharuu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"http://www.amitmerchant.com/electron-markdownify\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/antharuu/Velvet/master/public/logo.png\" alt=\"Markdownify\" width=\"200\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  Velvet\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eA simple, fast and customizable HTML preprocessor, \n inspired by \u003ca href=\"https://pugjs.org/api/getting-started.html\" target=\"_blank\"\u003epug\u003c/a\u003e.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/antharuu/Velvet\"\u003e\n  \u003cimg alt=\"GitHub last commit\" src=\"https://img.shields.io/github/last-commit/antharuu/Velvet?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://badge.fury.io/js/velvet-lang\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/velvet-lang?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/velvet-lang\"\u003e\n  \u003cimg alt=\"npm bundle size (version)\" src=\"https://img.shields.io/bundlephobia/min/velvet-lang/*?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e ⚠️ Velvet is still under development and many features of the final version are not yet present. It is possible that the syntax or the way Velvet is used will change in future versions.\n\n## Installation\n\nTo use Velvet you just have to install it with your favorite package manager:\n\n```bash\n# NPM\n$ npm install velvet-lang --save-dev\n\n# Yarn\n$ yarn add velvet-lang --dev\n\n# PNPM\n$ pnpm add velvet-lang --save-dev\n```\n\n## How To Use\n\n```js\nimport Velvet from \"velvet-lang\";\n\nconst html = Velvet.parse(\"h1 Hello world\");\n```\n\n## Syntaxe\n\n\u003e **Note**\n\u003e A website with documentation on the syntax will be released once the project is more progressed.\n\nSimple examples\n\n```pug\nh1 Hello world\n// \u003ch1\u003eHello world\u003c/h1\u003e\n\n\nh1 Hello\n  span world\n// \u003ch1\u003eHello \u003cspan\u003eworld\u003c/span\u003e\u003c/h1\u003e\n\nh1(data-test=\"title\") Hello world\n// \u003ch1 data-test=\"title\"\u003eHello world\u003c/h1\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantharuu%2Fvelvet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantharuu%2Fvelvet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantharuu%2Fvelvet/lists"}