An open API service indexing awesome lists of open source software.

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.

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 '…'`