node-string-format-light

Replaces values in a string

Usage no npm install needed!

<script type="module">
  import nodeStringFormatLight from 'https://cdn.skypack.dev/node-string-format-light';
</script>

README

node-string-format

Converts the value of objects to strings based on the formats specified and inserts them into another string.

Usage


require('node-string-format-light');

var node = 'NODE';

console.log('Hello {0}!'.f(node));
// Hello NODE!