UNPKG

dtl-js

Version:

Data Transformation Language - JSON templates and data transformation

18 lines (10 loc) 199 B
let DTL = require('dtl-js'); let b = Buffer.from('This is stuff'); let input = { thing: b }; let tx = { out: "(: $thing :)" }; let result = DTL.apply(input, tx); console.log(result);