Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adieuadieu/node-headless-chrome
⚠️ 🚧 Install precompiled versions of the Chromium/Chrome headless shell using npm or yarn
https://github.com/adieuadieu/node-headless-chrome
chrome chrome-debugging-protocol chromium headless headless-chrome nodejs prebuilt
Last synced: about 2 months ago
JSON representation
⚠️ 🚧 Install precompiled versions of the Chromium/Chrome headless shell using npm or yarn
- Host: GitHub
- URL: https://github.com/adieuadieu/node-headless-chrome
- Owner: adieuadieu
- License: mit
- Created: 2017-05-07T07:36:41.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-08T07:49:14.000Z (over 7 years ago)
- Last Synced: 2024-10-11T00:08:45.453Z (2 months ago)
- Topics: chrome, chrome-debugging-protocol, chromium, headless, headless-chrome, nodejs, prebuilt
- Language: JavaScript
- Homepage:
- Size: 42.3 MB
- Stars: 22
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-headless-chromium
Install precompiled versions of the Chromium/Chrome [headless shell](https://cs.chromium.org/chromium/src/headless/app/headless_shell.cc) using npm or yarn. Yay.*Warning*: This is a work-in-progress
## Installation
```bash
yarn add headless-chromium
```## Supported Platforms
Currently works on:
- [x] Linux Ubuntu x64
- [ ] Windows (not yet supported by Headless Chromium)## CLI Usage
```bash
headless-chromium
```## Programatic Usage
```js
import { path, spawn } from 'headless-chromium'// will print something similar to /Users/marco/.../headless-shell
console.log(path)// start headless chromium
await spawn(options)```
## Limitations / Known Issues
- binaries are prebuilt which means you trust that I didn't insert any malicious code into the chrome binaries.
- Building the chrome binary requires accepting the EULA for fonts. By using this package, you agree to also accept the EULA for fonts.## Previous Art
- https://github.com/Medium/phantomjs
- https://github.com/electron-userland/electron-prebuilt
- https://github.com/kanekotic/any-prebuilthttps://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md
http://www.zackarychapple.guru/chrome/2016/08/24/chrome-headless.html