Skip to content

⚠️ 🚧 Install precompiled versions of the Chromium/Chrome headless shell using npm or yarn

License

Notifications You must be signed in to change notification settings

adieuadieu/node-headless-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-headless-chromium

Install precompiled versions of the Chromium/Chrome headless shell using npm or yarn. Yay.

Warning: This is a work-in-progress

Installation

yarn add headless-chromium

Supported Platforms

Currently works on:

  • Linux Ubuntu x64
  • Windows (not yet supported by Headless Chromium)

CLI Usage

headless-chromium

Programatic Usage

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://chromium.googlesource.com/chromium/src/+/master/docs/mac_build_instructions.md http://www.zackarychapple.guru/chrome/2016/08/24/chrome-headless.html

About

⚠️ 🚧 Install precompiled versions of the Chromium/Chrome headless shell using npm or yarn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published