UNPKG

jsexpr

Version:

String and JSON expression interpolator and evaluator. Interpolates or evaluates a string against a json object, or transforms an object into another based on a json template

20 lines (15 loc) 407 B
"use strict"; (function() { var root = this var previous_jsexpr = root.jsexpr; var jsexpr = require('./index.js'); if( typeof exports !== 'undefined' ) { if( typeof module !== 'undefined' && module.exports ) { exports = module.exports = jsexpr; } exports.jsexpr = jsexpr; } if(typeof window !== 'undefined') { window.jsexpr = jsexpr; } }).call(this);