How to use @serverless-chrome/lambda - 1 common examples

To help you get started, we’ve selected a few @serverless-chrome/lambda examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adieuadieu / serverless-chrome / packages / serverless-plugin / src / wrapper-aws-nodejs6.10.js View on Github external
module.exports.REPLACE_WITH_EXPORT_NAME = function ensureHeadlessChrome (event, context, callback) {
  (typeof launch === 'function' ? launch : launch.default)(options)
    .then((instance) => {
      handler.REPLACE_WITH_EXPORT_NAME(event, context, callback, instance)
    })
    .catch((error) => {
      console.error(
        'Error occured in serverless-plugin-chrome wrapper when trying to ' +
          'ensure Chrome for REPLACE_WITH_EXPORT_NAME() handler.',
        options,
        error
      )
    })
}

@serverless-chrome/lambda

Run headless Chrome/Chromium on AWS Lambda

MIT
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular @serverless-chrome/lambda functions