homaily / serverless-chrome-downloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

serverless-chrome-downloader

Serverless Chrome Downloader. The aim of this project is to automate discovering and downloading the latest build of Serverless Headless Chrome which built specifically for serverless environments such as AWS Lambda.


Install

npm install serverless-chrome-downloader --save-dev

Usage

const chromeDownloader = require('serverless-chrome-downloader')

chromeDownloader(
  './vendor/headless_chrome',     // Location (required). The path to save the headless chrome binary
  'stable',                       // Channel (optional, default is stable). One of: stable, beta or dev
  'adieuadieu/serverless-chrome'  // Github repo to download from (optional)
)

Command Line Usage

npx serverless-chrome-downloader [download-path] [channel] [repo-name]
  - [download-path]     Where to download the chrome binary (Required).
  - [channel]           Channel to download (stable | beta | dev). (Optional, default is stable).
  - [repo-name]         Github repo to download from (Optional, default is adieuadieu/serverless-chrome).

License

serverless-chrome-downloader released under the MIT license.
Authored and maintained by Abdulaziz Homaily with help from contributors.

GitHub @homaily · Twitter @homaily

About

License:MIT License


Languages

Language:JavaScript 100.0%