<commit_before># string_format

string_format is a small JavaScript utility which adds a `format` method to strings. 
It's inspired by and modelled on Python's `str.format()`.

When `format` is invoked on a string, placeholders within the string are
replaced with values determined by the arguments provided. A placeholder
is a sequence of characters beginning with `{` and ending with `}`.


## Install

```
npm install string_format
```


### string.format(value1, value2, ..., valueN)

Placeholders may contain numbers which refer to positional arguments:<commit_msg>added usage<commit_after># string_format

string_format is a small JavaScript utility which adds a `format` method to strings. 
It's inspired by and modelled on Python's `str.format()`.

When `format` is invoked on a string, placeholders within the string are
replaced with values determined by the arguments provided. A placeholder
is a sequence of characters beginning with `{` and ending with `}`.


## Install

```
npm install string_format
```

## Usage

```js
require('string_format');
```


### string.format(value1, value2, ..., valueN)

Placeholders may contain numbers which refer to positional arguments:
{'fraction_non_alphanumeric': 0.09029535864978903, 'fraction_numerical': 0.0033755274261603376, 'mean_word_length': 4.959798994974874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2287526', 'n_tokens_mistral': 328, 'n_tokens_neox': 302, 'n_words': 145}