npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

sc-chrome-installer

v1.6.1

Published

A utility package to install Chrome for Web applications in Linux environments

Downloads

59

Readme

SC Chrome Installer

A utility package to automate Chrome installation for SC Web applications, particularly in Linux deployment environments.

Features

  • Automatically installs Chrome during npm installation (Linux only)
  • Skips installation on Windows environments
  • Provides programmatic API to install Chrome or get the executable path

Installation

npm install --save sc-chrome-installer

Usage

Automatic Installation

The package will automatically attempt to install Chrome during npm install on Linux environments. No additional action is required.

On Windows environments, installation is automatically skipped.

Programmatic Usage

const chromeInstaller = require('sc-chrome-installer');

// Install Chrome (if not on Windows)
const success = chromeInstaller.installChrome();

// Get Chrome executable path (returns null on Windows)
const chromePath = chromeInstaller.getChromeExecutablePath();

Using with Puppeteer

After installation, configure Puppeteer to use the installed Chrome wrapper:

const puppeteer = require('puppeteer');
const browser = await puppeteer.launch({
  executablePath: process.env.CHROME_EXECUTABLE_PATH,
  args: ['--no-sandbox', '--disable-setuid-sandbox', '--disable-dev-shm-usage']
});

Environment Variable

The installer sets the following environment variable:

CHROME_EXECUTABLE_PATH="/home/site/wwwroot/chromium/chrome-linux/chrome-wrapper"

You can also set this manually if needed:

# For the current session
export CHROME_EXECUTABLE_PATH="/home/site/wwwroot/chromium/chrome-linux/chrome-wrapper"

# To persist across sessions, add to your .bashrc or .profile
echo "export CHROME_EXECUTABLE_PATH=/home/site/wwwroot/chromium/chrome-linux/chrome-wrapper" >> ~/.bashrc

Azure App Service Deployment

When deploying to Azure App Service, the script will automatically install the required system libraries. You can use the following simplified startup command:

bash -c "npm install sc-chrome-installer && npx sc-chrome-installer && pm2 update && pm2 install pm2-logrotate && pm2 start /home/site/wwwroot/dist/server.bundle.js --name web --max-memory-restart 7G --no-daemon --time --env production"

If you prefer to install the system dependencies separately, use this expanded command:

bash -c "apt-get update && apt-get install -y libx11-xcb1 libxcomposite1 libxcursor1 libxdamage1 libxi6 libxtst6 libnss3 libxrandr2 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcups2 libdrm2 libgbm1 libgtk-3-0 libnspr4 libxss1 libxkbcommon0 libpango-1.0-0 libpangocairo-1.0-0 libatspi2.0-0 libxshmfence1 fonts-liberation fonts-noto-color-emoji xdg-utils || true && npm install sc-chrome-installer && npx sc-chrome-installer && pm2 update && pm2 install pm2-logrotate && pm2 start /home/site/wwwroot/dist/server.bundle.js --name web --max-memory-restart 7G --no-daemon --time --env production"

Testing Chrome Installation

You can test if Chrome is correctly installed by running:

node src/bin/puppeteer-test.js

This will generate a test report in your temp directory.

License

MIT