pudding-evaluator
v3.0.4
Published
Evaluator for pudding.
Downloads
8
Readme
pudding-evaluator
Evaluator for pudding.
Installation
npm install pudding-evaluator --save
Usage
#!/usr/bin/env node
'use strict';
const puddingEvaluator = require('pudding-evaluator')
let evaluator = puddingEvaluator({})
let context = {
name: 'John'
}
let seed = {
greeting: 'Hi, my name is #{this.name}'
}
let data = evaluator(context, seed)
console.log(data) // -> { greeting: 'Hi, my name is John' }
License
This software is released under the MIT License.