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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@stark-test/accessibility-cli

v1.0.1-beta.1

Published

Starks accessibility checks brought to a command line interface.

Downloads

9

Readme

Stark accessibility CLI

Stark's accessibility tooling brought to a cli. By the developers, for the developers!

Usage

$ npm install -g @stark-test/accessibility-cli
$ stark-accessibility COMMAND
running command...
$ stark-accessibility (--version)
@stark-test/accessibility-cli/1.0.1-beta.1 linux-x64 node-v18.20.4
$ stark-accessibility --help [COMMAND]
USAGE
  $ stark-accessibility COMMAND
...

Commands

stark-accessibility config install

installs browser[chrome] alongside the cli.

USAGE
  $ stark-accessibility config install [--json]

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  installs browser[chrome] alongside the cli.

EXAMPLES
  $ stark-accessibility config install

stark-accessibility help [COMMANDS]

Display help for stark-accessibility.

USAGE
  $ stark-accessibility help [COMMANDS] [-n]

ARGUMENTS
  COMMANDS  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for stark-accessibility.

See code: @oclif/plugin-help

stark-accessibility scan

scans a given resource(s) for accessibility issues, optionally sends reports to your stark account

USAGE
  $ stark-accessibility scan --authentication-mode none|basic|page -U <value> [--json]
    [--authentication-password <value>] [--authentication-username <value>] [--authentication-page-url <value>]
    [--authentication-page-selectors <value>] [--disable-ferryman] [-M <value>] [--puppeteer-timeout <value>]
    [--puppeteer-wait-until load|domcontentloaded|networkidle0|networkidle2] [--reuse-page] [-S auto|on|off]
    [--scan-delay <value>] [--skip-errors] [--stealth-mode] [-V <value>]

FLAGS
  -M, --min-score=<value>             Exits the cli with exit code 1 if score is below given percentage
  -S, --sandbox-mode=<option>         [default: auto] Determine sandbox mode for browser
                                      <options: auto|on|off>
  -U, --url=<value>...                (required) Scan the given urls for accessibility issues. You can pass in a --url
                                      multiple times.
  -V, --viewport=<value>              [default: 800x600] Set browser to a specific window size. Defaults to '800x600'
  --authentication-mode=<option>      (required) [default: none] Specify what kind of authentication is required before
                                      navigating to the given urls
                                      <options: none|basic|page>
  --disable-ferryman                  Uses ferryman layer of rule-engine
  --puppeteer-timeout=<value>         [default: 30000] Navigation timeout for puppeteer
  --puppeteer-wait-until=<option>...  [default: load] Wait until params for puppeteer
                                      <options: load|domcontentloaded|networkidle0|networkidle2>
  --reuse-page                        Use the same page for scanning all urls. Defaults to false.
  --scan-delay=<value>                [default: 100] Delay scan after page has been navigated to in MS
  --skip-errors                       Continue to scanning the next url if an error occurs
  --stealth-mode                      Run puppeteer in stealth mode

PAGE AUTHENTICATION FLAGS
  --authentication-page-selectors=<value>  Specify selectors for page authentication separated by a semicolon in the
                                           format [username;password;button]
  --authentication-page-url=<value>        Specify url for authentication. Pass this along with
                                           --authentication-mode=page.
  --authentication-password=<value>        Specify password for authentication. A --authentication-mode needs to be
                                           setup first.
  --authentication-username=<value>        Specify username for authentication. A --authentication-mode needs to be
                                           setup first.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  scans a given resource(s) for accessibility issues, optionally sends reports to your stark account

EXAMPLES
  $ stark-accessibility scan

FLAG DESCRIPTIONS
  -M, --min-score=<value>  Exits the cli with exit code 1 if score is below given percentage

    Given a value [0-100], the cli will exit with an error code (1) if the score is lesser.         Score is the
    percentage of passed checks over total checks. The default value is 0

  -S, --sandbox-mode=auto|on|off  Determine sandbox mode for browser

    Specify if browser should run in sandbox. Auto mode disables sandbox only when in a container environment.
    [on/off] forces sandbox mode to be [on/off]

  --authentication-mode=none|basic|page

    Specify what kind of authentication is required before navigating to the given urls

    Specify authentication mode for accessing the given set of urls. Choose between basic and page mode. Basic mode does
    basic navigation and is the fastest.       Page mode will navigate to a login page url every time before the given
    urls

  --authentication-page-selectors=<value>

    Specify selectors for page authentication separated by a semicolon in the format [username;password;button]

    Specify the selectors to interact with during page mode authentication. You need to set username with
    --authentication-username and password with password with --authentication-password flags       and set
    --authentication-mode=page

  --authentication-page-url=<value>  Specify url for authentication. Pass this along with --authentication-mode=page.

    Specify the page to authenticate before navigating to any page. You need to set username with
    --authentication-username and password with password with --authentication-password flags       and set
    --authentication-mode=page

  --authentication-password=<value>

    Specify password for authentication. A --authentication-mode needs to be setup first.

    Specify the password along with username with --authentication-username flag and --authentication-mode

  --authentication-username=<value>

    Specify username for authentication. A --authentication-mode needs to be setup first.

    Specify the username along with password with --authentication-password flag and --authentication-mode

  --disable-ferryman  Uses ferryman layer of rule-engine

    Ferryman, introduced from [email protected] returns results normalised by frameworks and removes redundant data

  --puppeteer-timeout=<value>  Navigation timeout for puppeteer

    Timeout in milliseconds before puppeteer fails

  --puppeteer-wait-until=load|domcontentloaded|networkidle0|networkidle2...  Wait until params for puppeteer

    Wait until a browser event is completed

  --reuse-page  Use the same page for scanning all urls. Defaults to false.

    Keep using a single page to scan all urls. This can be beneficial in cases when the logged in session only stays on
    a page. This can cause issues if       the scans are dependent on having navigated to a clean page. A new page is
    used by default. Cookies are still preserved.

  --scan-delay=<value>  Delay scan after page has been navigated to in MS

    Integer delay in ms to run the scanner on a loaded page. Add a delay to just be sure all elements are available

  --skip-errors  Continue to scanning the next url if an error occurs

    Setting skip-errors to true will continue scanning the next url in the list of urls. If there is only one url
    or if all scans errored out, the cli will run to a successful completion

  --stealth-mode  Run puppeteer in stealth mode

    Enables puppeteer-extra which attempts to runs puppeteer in a mode where websites can't detect that this is a bot