# ejsc

Latest version **0.1.0** (published 2015-12-25) · MIT license · 0 weekly downloads

## Install

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

Provides the command `ejsc`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-12-25 |
| First published | 2015-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Fabio Iotti |
| Maintainers | bruce965 |

## Links

- npm: https://www.npmjs.com/package/ejsc
- Repository: https://github.com/bruce965/ejsc
- Issues: https://github.com/bruce965/ejsc/issues
- npm.io page: https://npm.io/package/ejsc

## Dependencies (1)

- [ejs](https://npm.io/package/ejs.md) ^2.3.4

## Recent versions

- 0.1.0 (latest) — 2015-12-25

## README

ejsc
====

## Usage

`ejsc <file> [output] [data]`


## Examples

`ejsc myPage.html.ejs` - Compiles *myPage.html.ejs* to *myPage.html*.

`ejsc template.ejs compiled.html` - Compiles *template.ejs* to *compiled.html*.

`ejsc myPage.ejs myPage.html "{ \"value\": 123 }"` - Compiles *myPage.ejs* passing the specified object as global context.


## Complete Example

`ejsc file1.txt.ejs output.txt "{ \"something\": \"from arguments\" }"`

### file1.txt.ejs
```
Hello, World!

This is <%- filename %>, something = <%- something %>

<%- compile('file2.txt.ejs', { something: "test" }) %>
```

### file2.txt.ejs
```
This is <%- filename %>, something = <%- something %>
```

### output.txt
```
Hello, World!

This is file1.txt.ejs, something = from arguments

This is file2.txt.ejs, something = test
```


## License

Copyright © 2018 Fabio Iotti. ejsc is released under the terms of the MIT License.

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