Narcissistic Project Managers
    Wondering what’s next for npm?Check out our public roadmap! »

    a11y-backpack
    TypeScript icon, indicating that this package has built-in type declarations

    0.2.4 • Public • Published

    Coverage Status

    A11y Backpack is a service designed to improve accessibility on your website. Easily allow the user to navigate and read content using keyboard and voice commands.

    Example

      a11yBackpack.setStartListeningKey('l');
     
      a11yBackpack.setReadOnElementCommand({ id: 'main-text', commandKey: 'c', voiceWord: 'content' });
     
      a11yBackpack.setClickOnElementCommand({ id: 'menu-home-link', commandKey: 'h', voiceWord: 'home' });

    a11yBackpack.setStartListeningKey('l'): Starts recognizing voice commands when the l key is pressed.

    a11yBackpack.setReadOnElementCommand({ id: 'main-text', commandKey: 'c', voiceWord: 'content' }): Reads the content of element with id main-text when the key c is pressed or when the user says content.

    a11yBackpack.setClickOnElementCommand({ id: 'menu-home-link', commandKey: 'h', voiceWord: 'home' }): Clicks the element with id menu-home-link when the key h is pressed or when the user says home.

    Install

    npm i a11y-backpack

    DownloadsWeekly Downloads

    2

    Version

    0.2.4

    License

    MIT

    Unpacked Size

    41.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar