# templist

> The template master.

Latest version **0.0.7** (published 2018-01-02) · MIT license · 0 weekly downloads

## Install

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

## 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.0.7 |
| Published | 2018-01-02 |
| First published | 2017-07-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.48 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ramesh Kumar |
| Maintainers | codeofnode |
| Keywords | template, json, string, function, dynamic |

## Links

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.7 (latest) — 2018-01-02
- 0.0.6 — 2017-11-22
- 0.0.5 — 2017-11-04
- 0.0.4 — 2017-08-02
- 0.0.3 — 2017-07-23
- 0.0.2 — 2017-07-23
- 0.0.1 — 2017-07-15
- 0.0.0 — 2017-07-15

## README

# The Templist
> The templating specialist

## Install
```
$ npm install templist
```

## Usage
```js
const templist = require('templist');
const myoutput = templist( AnyStringOrPOJO,
                          { variable : 'map' },
                          { OptionalMethods: function(inp){ return modify(inp) } });
```

## What it can do
```txt
templist('hello {{whois}}', { whois : "john" }) --> 'hello john'
templist('hello {{whois.firstname}}', { whois : { firstname: "john" } }) --> 'hello john'
templist({ hello : "{{whois.firstname}}" }, { whois : { firstname: "john" } }) --> { hello : "john" }
templist({ "{{greet}}" : "{{whois.firstname}}" }, { greet : "hello", whois : { firstname: "john" } })
      --> { hello : "john" }
templist({ "{{greet}}" : "{{whois}}" }, { greet : "hello", whois : { firstname: 'john' } })
      --> { hello : { firstname: 'john' } }
templist({ "{{greet}}" : { @ : 'getName' } }, { greet : "hello" }, { getName : function(){ return 'john' } })
      --> { hello : 'john' }

//via calls () fashion
templist({"gb{{1}}{{bm}}{{func(1,{{0}})}}":{"@":"func","params":true}},[3,9], {func:function(a,b){ return a+b; }})
    ---> {'gb9{{bm}}4': '3,9[object Object]'}
```

## Want more example?
> See [test file](https://github.com/codeofnode/templist/blob/master/test.js).

## License

Templist is released under the MIT license:

http://www.opensource.org/licenses/MIT

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