{"size": 471, "ext": "js", "max_stars_repo_path": "examples/66567679/example.js", "max_stars_repo_name": "mrdulin/jest-v26-codelab", "max_stars_repo_stars_event_min_datetime": "2021-01-18T02:11:08.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-17T13:14:56.000Z", "max_issues_repo_path": "examples/66567679/example.js", "max_issues_repo_name": "mrdulin/jest-v26-codelab", "max_issues_repo_issues_event_min_datetime": "2021-06-09T10:03:58.000Z", "max_issues_repo_issues_event_max_datetime": "2021-06-18T07:08:06.000Z", "max_forks_repo_path": "examples/66567679/example.js", "max_forks_repo_name": "mrdulin/jest-v26-codelab", "max_forks_repo_forks_event_min_datetime": "2021-08-20T12:14:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-08-20T12:14:59.000Z"}
{"max_stars_count": 3, "max_issues_count": 1, "max_forks_count": 1, "avg_line_length": 19.625, "max_line_length": 91, "alphanum_fraction": 0.6199575372}
const got = require('got');

const example = async (event, context, callback) => {
  let message;

  const gotOptions = {
    json: {
      process: event.process,
    },
    responseType: 'json',
  };

  const res = await got.post('https://some.url/api/process', gotOptions).catch((error) => {
    callback(error);
  });

  console.log('process');
  message = `Process ${event.process} is: ${res.body.active}`;

  callback(null, message);
};

exports.example = example;
