{"id":18865123,"url":"https://github.com/delapouite/emmet-cli","last_synced_at":"2025-04-14T13:22:02.807Z","repository":{"id":33027788,"uuid":"133346116","full_name":"Delapouite/emmet-cli","owner":"Delapouite","description":"Emmet command line interface","archived":false,"fork":false,"pushed_at":"2023-11-09T03:45:57.000Z","size":16,"stargazers_count":31,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T13:21:54.348Z","etag":null,"topics":["emmet","kakoune"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/Delapouite.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}},"created_at":"2018-05-14T10:46:01.000Z","updated_at":"2025-02-25T13:52:35.000Z","dependencies_parsed_at":"2024-01-06T13:17:34.917Z","dependency_job_id":"780add74-25d3-4254-8ff8-251fab7d6a81","html_url":"https://github.com/Delapouite/emmet-cli","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.2142857142857143,"last_synced_commit":"407b0e8c59f65f205967d6be71105e0bd2001d62"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Femmet-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Femmet-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Femmet-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Delapouite%2Femmet-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Delapouite","download_url":"https://codeload.github.com/Delapouite/emmet-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886398,"owners_count":21177660,"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":["emmet","kakoune"],"created_at":"2024-11-08T04:45:55.859Z","updated_at":"2025-04-14T13:22:02.763Z","avatar_url":"https://github.com/Delapouite.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# emmet-cli\n\n[emmet](https://emmet.io/) command line interface.\n\n## Usage\n\n```\n$ emmet abbr\n$ echo abbr | emmet\n```\n\nExamples:\n\n```\n$ emmet '#foo\u003espan.bar*3'\n```\n\noutputs on `stdout`:\n\n```\n\u003cdiv id=\"foo\"\u003e\n  \u003cspan class=\"bar\"\u003e\u003c/span\u003e\n  \u003cspan class=\"bar\"\u003e\u003c/span\u003e\n  \u003cspan class=\"bar\"\u003e\u003c/span\u003e\n\u003c/div\u003e\n\n```\n\n```\n$ echo '!' | emmet\n```\n\noutputs on `stdout`:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml lang=\"en\"\u003e\n\u003chead\u003e\n\t\u003cmeta charset=\"UTF-8\"\u003e\n\t\u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\u003e\n\t\u003cmeta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\"\u003e\n\t\u003ctitle\u003eDocument\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\t\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nUse the `-p` flag to include placeholders in the output:\n\n```\n$ echo '#foo\u003espan.bar*3' | emmet -p\n```\n\noutputs on `stdout`:\n\n```\n\u003cdiv id=\"foo\"\u003e\n\t\u003cspan class=\"bar\"\u003e${1}\u003c/span\u003e\n\t\u003cspan class=\"bar\"\u003e${2}\u003c/span\u003e\n\t\u003cspan class=\"bar\"\u003e${3}\u003c/span\u003e\n\u003c/div\u003e\n```\n\nThese syntax should be compatible with snippets formats like the\none used by [lsp servers](https://github.com/Microsoft/language-server-protocol/blob/master/snippetSyntax.md)\n\n## Install\n\n```\n$ npm i -g emmet-cli\n$ yarn global add emmet-cli\n```\n\n## About\n\n**emmet** is a great plugin available in many modern code editors.\nIt aims mainly at working with HTML easier.\n\nIt's written in JavaScript so there's no easy way run it without `node.js`.\n\nThis module is currently a dead simple (like 10 lines of code) way to use the compiler\nas a CLI. It uses a few modules from [@emmet-io](https://www.npmjs.com/~emmetio) which\nis an effort for emmet 2.x to decouple all its internal bits.\n\n- https://www.npmjs.com/package/@emmetio/expand-abbreviation\n- https://www.npmjs.com/package/@emmetio/snippets\n\nMy main usage currently is with [kakoune](http://kakoune.org)'s `!` command which\nblindly insert the output of `emmet` into the current buffer or the `|` command which\npipes selections contents to `emmet`'s stdin.\n\nIn the future, I'll try to improve this scenario further by combining with cool stuff\nlike [phantom selectons](https://github.com/occivink/kakoune-phantom-selection).\n\nAccording to its README, the [HTML matcher](https://www.npmjs.com/package/@emmetio/html-matcher)\nwould be a nice way to grab coordinates that may be turned into [text-objects](https://github.com/Delapouite/kakoune-text-objects),\nbut the `findPair` function is nowhere to be found (yet).\n\n## See Also\n\n- [kakoune-snippets](https://github.com/JJK96/kakoune-snippets)\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelapouite%2Femmet-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelapouite%2Femmet-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelapouite%2Femmet-cli/lists"}