UNPKG

api-gateway-payload-parse

Version:

Utility function for easier parsing of the AWS API-Gateway built-in mapping template functions, like `input.params()`.

8 lines (6 loc) 187 B
import test from 'ava'; import fn from './'; test(t => { t.same(fn("{fields=id, anotherKey=aParam%2CanotherParam}"), {fields: 'id', anotherKey: 'aParam,anotherParam'}); t.end(); });