# emejs

> the best template engine

Latest version **3.1.0** (published 2022-08-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install emejs
pnpm add emejs
yarn add emejs
bun add emejs
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.1.0 |
| Published | 2022-08-13 |
| First published | 2022-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | arasemr12 |
| Maintainers | arasemr12 |

## Links

- npm: https://www.npmjs.com/package/emejs
- Repository: https://github.com/emejs/emejs
- Homepage: https://github.com/emejs/emejs#readme
- Issues: https://github.com/emejs/emejs/issues
- npm.io page: https://npm.io/package/emejs

## Recent versions

- 3.1.0 (latest) — 2022-08-13
- 3.0.3 — 2022-08-02
- 3.0.2 — 2022-07-30
- 3.0.1 — 2022-07-30
- 3.0.0 — 2022-07-30
- 2.0.0 — 2022-07-30
- 1.0.0 — 2022-07-30

## README

# EMEJS

```js
const emejs = require('emejs');

//direct code

let myhtml = "<h1>Welcome to {{=title}}</h1> <span>{{=description}}</span> <span>I know {{=langs.length}} languages!</span> <span> Random code: {{Math.random()}} </span>";

let emjshtml = emejs.compile(myhtml,[{name:'title',value:'EMEJS'},{name:'description',value:'The best template engine'},{name:'langs',value:["c++","javascript","html","css","node.js"]}]);

console.log(emjshtml);

//direct file

(async() => {
    let emjshtmlfile = await emejs.compilefile("test.eme",[{name:'title',value:'EMEJS'},{name:'description',value:'The best template engine'},{name:'langs',value:["c++","javascript","html","css","node.js"]}]);

    console.log(emjshtmlfile);
})()
```
coded by arasemr12#9891

thanks kuzeeeyk#1000

---
_Source: https://npm.io/package/emejs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
