@dashkite/polaris
v0.10.37
Published
Simple JSON Query-based text interpolation for JavaScript
Readme
Polaris
Simple JSON Query-based text interpolation for JavaScript
import { expand } from "@dashkite/polaris"
data = name: Alice
greeting = expand "Hello, ${ name }", data
assert greeting == "Hello, Alice"- JSON query expressions
- Escaping using
\ - Recursive expanson of objects and arrays
