text-replacement-toolkit
v1.0.0
Published
A library to easy replace keys inside strings
Downloads
2
Maintainers
Readme
This Library is intended to be use to easyly apply dynamic values inside text strings
const A = 'This is a {key} example' const B = 'text' const C = '{key}' const D = 'This example {key1} multiple {key2}' const E = { '{key1}': 'manage', '{key2}': 'keys', }
replaceKeyWithText(A, B, C) replaceKeyWithBold(A, B, C) replaceMultipleKeysWithText(D, E)