hassium

2.0.0 • Public • Published

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}

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i hassium

      Weekly Downloads

      1

      Version

      2.0.0

      License

      MIT

      Unpacked Size

      2.33 kB

      Total Files

      6

      Last publish

      Collaborators

      • zemlanin