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

14 lines (10 loc) 305 B
let expression = require('./expression'), mingo = require('./mingo_ex'); let instance = expression('$'); instance.newInstance = function(token) { return expression(token); } instance.filter = function(name,fncallback) { instance.FILTERS[name] = fncallback; } module.exports = instance;