variabletag
v1.0.2
Published
Like template literals, but for strings and custom variables.
Downloads
1
Readme
VariableTag
Like template literals, but for user inputted strings and custom variables.
Install
npm i variabletag
Example
const VariableTag = require('variabletag');
const vt = new VariableTag({
tags: {
'user': 'sammy',
'punctuation': '!'
}
});
const text = vt.format('Hello %user%%punctuation%');
console.log(text);