This feature is supported in vanilla Javascript in the console.log function. The format would work as follows:
console.log('Hey %s', 'cat');
which results in
"Hey cat"
If you happen to be using Node.js, this functionality is supported out of box with the util.format(...) function, working pretty much the same way except that it just returns a string.
%s = string
%d = integer or float
%j = stringifyable object
Imo this approach might be slightly more idiomatic javascript than using an external library that simulates a ruby or C syntax, IF you are already using Node.js in some capacity.
https://nodejs.org/api/util.html#util_util_format_format