2.0.0 • Published 7 years ago
hassium v2.0.0
hassium
ES2015 Template Tag for JSON. Powered by Proxy
Usage
import hs from 'hassium'
const wrapBooleanInObject = hs`{"x": ${Boolean}}`
wrapBooleanInObject({})
// => {"x": true}
const mapInnerValue = hs`{"x": ${hs.lol.length}}`
mapInnerValue({lol: ['something']})
// => {"x": 1}