Library to generate EPF scripts from a snippets library file
npm install @eggplantio/epf-snippetsLibrary to load and generate sensetalk snippets for EPF.
You'll need a template file of sensetalk snippets loaded into a string
to begin with. Then usage of the lib is as follows:
``
import Template from '@eggplantio/epf-snippets'
const templateFile = '...'
const tpl = new Template(templateFile)
tpl.listSnippets()
tpl.populate('Snippet1', { param1: 'foo', param2: 'bar' })
``