npm.io
1.2.0 • Published 4 years ago

pratique-template

Licence
ISC
Version
1.2.0
Deps
0
Size
90 kB
Vulns
0
Weekly
0
Stars
1

pratique-template

Replace template character

Quickly understand:

const render = require('pratique-template/string')

render(`I'm {{name}}, a {{privateInfo.age}} old`, {
  name: 'krishnan', 
  privateInfo:{ age: 18 }
}) // 'I'm krishnan, a 18 old'

Keywords