Getting started

Requirements

  • Node.js 8+
  • npm or yarn

TypeScript is not mandatory but it more enjoyable to develop with!

Installation

With yarn:

$ yarn add @kocal/web-extension-library

With npm:

$ npm install @kocal/web-extension-library

Usage

All functions can/should be imported from @kocal/web-extension-library:

import {
  onBrowserActionClick,
  setBadgeColor,
  setBadgeText,
  setBrowserActionTitle,
  ...
} from '@kocal/web-extension-library';