Skip to content

zemlanin/hassium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 }

About

ES2015 Template Tag for JSON

Resources

Stars

Watchers

Forks

Packages

No packages published