# meta-template

> template plugin for meta

Latest version **2.0.3** (published 2018-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install meta-template
pnpm add meta-template
yarn add meta-template
bun add meta-template
```

Provides the commands `meta-template`, `meta-template-apply`.

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2018-04-24 |
| First published | 2017-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 208 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | pat@patscott.io |
| Maintainers | patrickleet |
| Keywords | template, meta, repo, repository, metarepository, metarepo |

## Links

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

## Dependencies (13)

- [co](https://npm.io/package/co.md) ^4.6.0
- [ncp](https://npm.io/package/ncp.md) ^2.0.0
- [chalk](https://npm.io/package/chalk.md) ^2.3.2
- [debug](https://npm.io/package/debug.md) ^3.1.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [promptly](https://npm.io/package/promptly.md) ^3.0.3
- [commander](https://npm.io/package/commander.md) ^2.9.0
- [concatAll](https://npm.io/package/concatAll.md) ^1.0.4
- [meta-exec](https://npm.io/package/meta-exec.md) 0.0.8
- [loop-things](https://npm.io/package/loop-things.md) 0.0.23
- [stream-replace](https://npm.io/package/stream-replace.md) ^1.0.0
- [recursive-readdir](https://npm.io/package/recursive-readdir.md) ^2.1.1

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 2.0.3 (latest) — 2018-04-24
- 2.0.2 — 2018-03-15
- 2.0.1 — 2018-03-15
- 2.0.0 — 2017-10-05
- 1.1.0 — 2017-08-31
- 1.0.0 — 2017-04-25

## README

# meta-template
[![Build Status](https://travis-ci.org/patrickleet/meta-template.svg?branch=master)](https://travis-ci.org/patrickleet/meta-template)
[![codecov](https://codecov.io/gh/patrickleet/meta-template/branch/master/graph/badge.svg)](https://codecov.io/gh/patrickleet/meta-template)
[![Greenkeeper badge](https://badges.greenkeeper.io/patrickleet/meta-template.svg)](https://greenkeeper.io/)

template plugin for meta

## Usage

### Create a template from a git repository

```
meta project add templates/meta-plugin git@github.com:patrickleet/meta-template-meta-plugin.git
```

Templates can contain variables, which the user will be prompted to fill when applying the template.

Example Template File
```
Hello, {[.NAME.]}
```

When applying the above template, the user would be prompted to provide a value for `NAME`

### Applying the template

```
> meta project add plugins/meta-docker-compose git@github.com:patrickleet/meta-docker-compose.git
> meta template apply templates/meta-plugin plugins/meta-docker-compose

Enter a value for 'PLUGIN_NAME': docker-compose
Enter a value for 'FULL_NAME': Patrick Scott
Enter a value for 'GITHUB_USERNAME': patrickleet
Enter a value for 'GITHUB_EMAIL': pat@patscott.io
```

#### Specifying options
It's also possible to set variables when running the command
```
meta template apply templates/test-template --FULL_NAME="Patrick Scott"
```


## Templates

* (meta-plugin)[https://github.com/patrickleet/meta-template-meta-plugin]

Please contibute more templates! It's super easy!

## Usage without meta

```
meta-template apply src dest
```

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