# string-interpolate

> Simple string interpolation

Latest version **0.4.0** (published 2014-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install string-interpolate
pnpm add string-interpolate
yarn add string-interpolate
bun add string-interpolate
```

Provides the command `interpolate`.

## 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.4.0 |
| Published | 2014-06-18 |
| First published | 2014-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alexey Raspopov |
| Maintainers | alexeyraspopov |

## Links

- npm: https://www.npmjs.com/package/string-interpolate
- Repository: https://github.com/alexeyraspopov/string-interpolate
- Issues: https://github.com/alexeyraspopov/string-interpolate/issues
- npm.io page: https://npm.io/package/string-interpolate

## Dependencies (2)

- [clify](https://npm.io/package/clify.md) ^0.1.1
- [multiline](https://npm.io/package/multiline.md) ^0.3.2

## Recent versions

- 0.4.0 (latest) — 2014-06-18
- 0.1.1 — 2014-03-16
- 0.1.0 — 2014-03-16

## README

# String interpolate

Simple string interpolation

## Install

 * via [npm](https://npmjs.org) `npm install string-interpolate`
 * via [component](http://component.io) `component install alexeyraspopov/string-interpolate`
 * via [bower](http://bower.io) `bower install string-interpolate`

## API

	interpolate(template, data);
	
 * `template` - template string. Default delimiters are `{}`
 * `data` - simple object

## Usage

	var interpolate = require('string-interpolate');
	
	interpolate('{ greeting }, { user.name }', {
		greeting: 'Hello',
		user: {
			name: 'Jane'
		}
	});
	
If `data` is not specified - returns template function

	var greet = interpolate('Hello { name }');
	
	greet({ name: 'Jane' }); // Hello Jane
	greet({ name: 'Mike' }); // Hello Mike
	
## License

[MIT License](http://en.wikipedia.org/wiki/MIT_License) (c) Alexey Raspopov

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