https://github.com/drsensor/emmet-cli
Emmet in your command line. Doesn't depend on node.js. Installs portable binary.
https://github.com/drsensor/emmet-cli
Last synced: over 1 year ago
JSON representation
Emmet in your command line. Doesn't depend on node.js. Installs portable binary.
- Host: GitHub
- URL: https://github.com/drsensor/emmet-cli
- Owner: DrSensor
- License: mit
- Created: 2022-09-13T08:57:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-20T12:52:12.000Z (over 3 years ago)
- Last Synced: 2025-03-10T19:57:14.221Z (over 1 year ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emmet-cli
[Emmet](https://emmet.io/) in your command line. Doesn't depend on `node.js`. Installs portable binary.
## Build
Install [quickjs](https://bellard.org/quickjs/) compiler and build binary with `make` command.
### Generating emmet.js (optional)
You can optionally generate `emmet.js` file from emmet's source. This step requires `node.js` and `npm` installed, for that reason I am including generated file in repository.
```
cd emmet-src/
npm install
npm run build
```
## Install
```
sudo make install
```
## Usage
```
usage: emmet 'emmet-abbreviation'
```
For example
```
emmet 'html:5>h1{Hello}+p>lorem'
```
will return
```
Document
Hello
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam repellendus excepturi ullam, deserunt hic nisi facilis? Optio facilis asperiores, suscipit, cupiditate eum neque odio iure earum nisi ut id similique!
```
Checkout [emmet documentation](https://docs.emmet.io/) for more examples.
## Tips
You can insert `emmet-cli` output to vim with `:read !emmet '…'` and to [vis](https://git.sr.ht/~martanne/vis) with `:< emmet '…'`