Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/saasify-sh/puppeteer-serverless

Puppeteer for both serverless functions and development.
https://github.com/saasify-sh/puppeteer-serverless

chrome lambda puppeteer serverless

Last synced: 3 months ago
JSON representation

Puppeteer for both serverless functions and development.

Awesome Lists containing this project

README

        

# puppeteer-serverless

> [Puppeteer](https://pptr.dev) for AWS Lambda that also works for local development.



Puppeteer Logo

[![NPM](https://img.shields.io/npm/v/puppeteer-serverless.svg)](https://www.npmjs.com/package/puppeteer-serverless) [![Build Status](https://travis-ci.com/saasify-sh/puppeteer-serverless.svg?branch=master)](https://travis-ci.com/saasify-sh/puppeteer-serverless) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```
npm i --save puppeteer-serverless
```

## Usage

Use just like normal puppeteer:

```js
import puppeteer from 'puppeteer-serverless'

const browser = await puppeteer.launch()
const page = await browser.newPage()
```

If `NODE_ENV` is set to `development`, it will use your local install of Chrome located at:

- **MacOS**: `/Applications/Google Chrome.app/Contents/MacOS/Google Chrome`
- **win32**: `C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`

## License

MIT © [Saasify](https://saasify.sh)