Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 519 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 519 Bytes

hassium

ES2015 Template Tag for JSON. Powered by Proxy

Build Status

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 }