https://github.com/sheepla/emmet-cli
✒ A command line tool to expand Emmet expression
https://github.com/sheepla/emmet-cli
cli command-line-tool css deno emmet html snippet
Last synced: 4 months ago
JSON representation
✒ A command line tool to expand Emmet expression
- Host: GitHub
- URL: https://github.com/sheepla/emmet-cli
- Owner: sheepla
- Created: 2023-05-14T10:36:35.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-14T11:41:23.000Z (about 2 years ago)
- Last Synced: 2025-01-10T21:30:12.352Z (6 months ago)
- Topics: cli, command-line-tool, css, deno, emmet, html, snippet
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# emmet-cli
**emmet-cli** is a command line tool to expand [Emmet](https://emmet.io)
expression.## Usage
```
$ emmet-cli --help
Usage: emmet-cli
Version: v0.0.1Description:
A simple command to expand Emmet expression
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-s, --stylesheet - Stylesheet mode
```## Examples
To expand the expression, just specify the expression in first argument.
```
$ emmet-cli "!>ul#nav>li.item$*4>a{Item $}"
``````html
Document
```
_NOTE_: In zsh, the `!` symbol will be expanded, so write `\!` instead.
To output as a stylesheet instead of a markup document, run with the `-s`,
`--stylesheet` option.
```
$ emmet-cli -s "bd1-s#f.5"
```
```css
border: 1px solid rgba(255, 255, 255, 0.5);
```
## Installation
Requires [Deno](https://deno.land) >= v1.25, testing on v1.33.3.
```
deno install --name emmet-cli --force https://raw.githubusercontent.com/sheepla/emmet-cli/master/cli.ts
```
## TODO
- [ ] Make it possible to specify indentation etc. with command line options
- [ ] Add a user snippet from a config file and make it configureable
- [ ] Distribute pre-compiled binaries from GitHub release page
## License
MIT
## Contributing
Welcome any contributing such as adding features, typo fixing, etc.
## c.f.
- [Emmet](https://emmet.io)
- [Emmet repo](https://github.com/emmetio/emmet)
- [Emmet cheat sheet](https://docs.emmet.io/cheat-sheet/)
- [Deno - Using Node and npm modules](https://deno.com/[email protected]/node#node-and-npm-modules)