<commit_before># string-placehold

A string template module for named or numbered placeholded strings and their interpolation. Based on ES6 template string syntax.

##Examples

Include by : 
```JavaScript
var placehold = require("string-placehold");
```

Named placeholders

```JavaScript
var template = placehold `Greetings ${"name"}, welcome to ${"place"}.`
 
var result = template({
  name: "earthling",
  place: "mars"
});
//result -> "Greetings earthling, welcome to mars."

```

Numbered placeholders
```JavaScript

var template = placehold `Greetings ${0}, welcome to ${1}.`

var result = template("interpolation", "example");
//result -> "Greetings earthling, welcome to mars."

//You can also pass in an array, it works by associating the placeholder with the array element on the index
var result = template(["lovely", "neat"]);
//result -> "Greetings earthling, welcome to mars."

```
## Installation

`npm install string-placehold`

## Licence

MIT<commit_msg>corrected minor markdown error: attempt 2<commit_after># string-placehold

A string template module for named or numbered placeholded strings and their interpolation. Based on ES6 template string syntax.

## Examples

Include by : 
```JavaScript
var placehold = require("string-placehold");
```

Named placeholders

```JavaScript
var template = placehold `Greetings ${"name"}, welcome to ${"place"}.`
 
var result = template({
  name: "earthling",
  place: "mars"
});
//result -> "Greetings earthling, welcome to mars."

```

Numbered placeholders
```JavaScript

var template = placehold `Greetings ${0}, welcome to ${1}.`

var result = template("interpolation", "example");
//result -> "Greetings earthling, welcome to mars."

//You can also pass in an array, it works by associating the placeholder with the array element on the index
var result = template(["lovely", "neat"]);
//result -> "Greetings earthling, welcome to mars."

```
## Installation

`npm install string-placehold`

## Licence

MIT
{'fraction_non_alphanumeric': 0.13025848960973138, 'fraction_numerical': 0.0035478966041561076, 'mean_word_length': 4.823008849557522, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3124045', 'n_tokens_mistral': 594, 'n_tokens_neox': 561, 'n_words': 222}