# templey

> Simple templating engine for all files.

Latest version **1.0.1** (published 2018-09-14) · GPL-3.0 license · 0 weekly downloads

## Install

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

## 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 | 1.0.1 |
| Published | 2018-09-14 |
| First published | 2018-09-14 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | theLMGN |
| Maintainers | thelmgn |
| Keywords | templating |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2018-09-14
- 1.0.0 — 2018-09-14

## README

# Templey

## [on npm for some reason](https://www.npmjs.com/package/templey)

### Using as a standalone script

```node templey.js file```
creates file.templeybuild.txt

### Using as a module

```require("templey")("input text")```

returns processed string

## Syntax

|file:name| -- Import from a file

|http:address| and |https:address| -- response from http request

|procarg:all| and |procarg:number| -- process arguments, all is space joined

|command:command| -- run a process and return output

|filename:| -- files filename

### Example 

```hello, this is a test of |file:name.txt|, you can escape things too, watch \|file:name.txt|!

the ip address that built this is |http:api.ipify.org|

the arguments when building this were |procarg:all| and the nodejs executable is stored at |procarg:0|

the nodejs version is |command:node -v|
this files name on disk is |filename:|

|file:layers.txt|```

would produce

```hello, this is a test of templey, you can escape things too, watch |file:name.txt|!

the ip address that built this is 0.0.0.0

the arguments when building this were /usr/local/bin/node /Users/thelmgn/Documents/pinghost2/Templey/index.js hello.txt and the nodejs executable is stored at /usr/local/bin/node

the nodejs version is v10.9.0

this files name on disk is hello.txt

you can put tags in other templey scripts like this, we're running from layers.txt and we've got things!
```

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