Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/saasify-sh/puppeteer-serverless
- Owner: saasify-sh
- Created: 2019-10-01T20:12:56.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T19:50:54.000Z (over 2 years ago)
- Last Synced: 2024-04-26T01:32:35.917Z (8 months ago)
- Topics: chrome, lambda, puppeteer, serverless
- Language: TypeScript
- Homepage:
- Size: 42 KB
- Stars: 30
- Watchers: 4
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# puppeteer-serverless
> [Puppeteer](https://pptr.dev) for AWS Lambda that also works for local development.
[![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)