how to parse query string in node.js lambda

JavaScript
{
  "data" : $input.path('$').toJSON(),
  "foo" : "$input.params('X-Foo')"
}

Source

Also in JavaScript: