Skip to content

arnaudleray/eco-index-audit

 
 

Repository files navigation

Eco Index Audit

Actions Status

Installation

If you just need to run an audit, you can use NPX

npx eco-index-audit --url=https://www.google.com/ --ecoIndex=50 --visits=2000 --output=table

But you can also clone, install and run the project locally.

git clone https://github.com/EmmanuelDemey/eco-index-audit 
cd eco-index-audit 
npm i

Usage/Examples

node ./src/cli.js --url=https://www.google.com/ --ecoIndex=50 --visits=2000 --output=table
node ./src/cli.js --url=https://www.google.com/ --ecoIndex=50 --visits=2000 --output=csv

CI Integration

You can execute this module directly from your CI. Here is an example for Github Actions :

name: Running Eco Index via a Github Action

on:
  workflow_dispatch:

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Use Node.js
      uses: actions/setup-node@v3
      with:
        node-version: 16
    - run: npm i -g eco-index-audit@0.6.0
    - run: npx eco-index-audit --url=https://www.google.com/ --ecoIndex=90 --output=table

Tech Stack

Typescript, Puppeteer

Authors

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.2%
  • Shell 0.8%