util.toolbox-node

A set of functions used for build and testing across node projects

Usage no npm install needed!

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

README

util.toolbox-node

A set of utility functions used for build and testing across node 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:

  • call
  • callSync
  • getDirectories
  • isLinux - returns true if the operating system is Linux, otherwise false.
  • isMac - returns true if the operating system is OSX, otherwise false.
  • isWin - returns true if the operating system is windows, otherwise false.

These functions cannot be used within a web module (unless it's within electron). These require Node to function correctly and that will not be available in a browser.