<commit_before># string-format-js

[![Build Status](https://travis-ci.org/tmaeda1981jp/string-format-js.png?branch=master)](https://travis-ci.org/tmaeda1981jp/string-format-js)


## Synopsis

String format function for javascript.

## Code Example

### %d

```javascript
'%d'.format(10) === '10'
'%d, %d'.format(5, 10) === '5, 10'
'%d, %d and %d'.format(5, 10, 15) === '5, 10 and 15'
'%05d'.format(123) === '00123'
'%03d, %05d'.format(1, 123) === '001, 00123'<commit_msg>Add some badges on README<commit_after># string-format-js

![License](https://img.shields.io/badge/license-MIT-blue.svg) [![NPM version](http://img.shields.io/npm/v/string-format-js.svg)](https://npmjs.org/package/string-format-js) [![Build Status](https://travis-ci.org/tmaeda1981jp/string-format-js.png?branch=master)](https://travis-ci.org/tmaeda1981jp/string-format-js) [![Coverage Status](https://coveralls.io/repos/github/tmaeda1981jp/string-format-js/badge.svg?branch=master)](https://coveralls.io/github/tmaeda1981jp/string-format-js?branch=master) [![Downloads](https://img.shields.io/npm/dm/string-format-js.svg)](https://www.npmjs.com/package/string-format-js)

## Synopsis

String format function for javascript.

## Code Example

### %d

```javascript
'%d'.format(10) === '10'
'%d, %d'.format(5, 10) === '5, 10'
'%d, %d and %d'.format(5, 10, 15) === '5, 10 and 15'
'%05d'.format(123) === '00123'
'%03d, %05d'.format(1, 123) === '001, 00123'
{'fraction_non_alphanumeric': 0.23876404494382023, 'fraction_numerical': 0.08146067415730338, 'mean_word_length': 5.277533039647577, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5227899', 'n_tokens_mistral': 673, 'n_tokens_neox': 567, 'n_words': 85}