util.toolbox

A set of functions used for build and testing across projects

Usage no npm install needed!

<script type="module">
  import utilToolbox from 'https://cdn.skypack.dev/util.toolbox';
</script>

README

util.toolbox

A set of utility functions used for build and testing across web projects.

build analysis code style: prettier testing NPM

Installation

This module uses yarn to manage dependencies and run scripts for development.

To install as a development application dependency:

$ yarn install --dev util.toolbox

To build the app and run all tests:

$ yarn run all

Usage

The toolbox contains the following functions:

It contains the following exposed variables:

  • isBrowser -- true if the runtime environment is the browser, otherwise false
  • isNode -- true if the runtime environement is NodeJS, otherwise false