util.toolbox-node
v0.0.8
Published
A set of functions used for build and testing across node projects
Downloads
52
Readme
util.toolbox-node
A set of utility functions used for build and testing across node projects.
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.