# colors-tmpl

> Simple templating for applying colors.js to strings

Latest version **1.0.0** (published 2014-10-09) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install colors-tmpl
pnpm add colors-tmpl
yarn add colors-tmpl
bun add colors-tmpl
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-10-09 |
| First published | 2012-03-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Rod Vagg |
| Maintainers | rvagg |
| Keywords | color, colour, colours, colours, colors.js, templating, templates, goatscale |

## Links

- npm: https://www.npmjs.com/package/colors-tmpl
- Repository: https://github.com/rvagg/colors-tmpl
- Issues: https://github.com/rvagg/colors-tmpl/issues
- npm.io page: https://npm.io/package/colors-tmpl

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ~1.0.2

## Alternatives

- [postcss-color-hex-alpha](https://npm.io/package/postcss-color-hex-alpha.md) — 6.4M weekly downloads
- [randomcolor](https://npm.io/package/randomcolor.md) — 348.0K weekly downloads
- [bows](https://npm.io/package/bows.md) — 1.3K weekly downloads
- [ep_prefer_color_scheme](https://npm.io/package/ep_prefer_color_scheme.md) — 260 weekly downloads
- [coc-yank](https://npm.io/package/coc-yank.md) — 61 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2014-10-09
- 0.1.1 — 2014-10-03
- 0.1.0 — 2012-11-03
- 0.0.3 — 2012-03-14
- 0.0.2 — 2012-03-14
- 0.0.1 — 2012-03-14

## README

# colors-tmpl - Super-simple templating for [colors.js](https://github.com/Marak/colors.js)

```js
var colorsTmpl = require('colors-tmpl')

// simple:
colorsTmpl('{red}this should be red{/red}')
// same as → 'this should be red'.red

// fancy:
colorsTmpl('lotsa colours: {red}red{/red}, {green}green{/green}, {blue}blue{/blue}, yeehaw!')
// same as → 'lotsa colours: ' + 'red'.red + ', ' + 'green'.green + ', ' + 'blue'.blue + ', ' + 'yeehaw!'

// fancier:
colorsTmpl(
      '{bold}colours {red}within {green}colours{/green} within {yellow}colours, {underline}oh my!{/underline}{/yellow}{/red} EEEK!{/bold}'
    )
// same as → 'colours ' + ('within ' + 'colours'.green + ' within ' + ('colours, ' + 'oh my!'.underline).yellow).red + ' EEEK!').bold
```

## License

**colors-tmpl** is Copyright (c) 2014 Rod Vagg [@rvagg](https://twitter.com/rvagg) and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

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