1.0.0 • Published 6 years ago

gonzal-xplat v1.0.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

gonzal-xplat

Provides utility items to assist in cross-platform (xplat) programming.

Installation

npm install gonzal-stuff --save

Usage

const path = require('path');
const xplat = require('gonzal.xplat');
const configPath = path.join(xplat.baseDirs.config, '.myAppConfig');

if (xplat.isWindows) {
    // Windows specific setup
} else if (xplat.isMac) {
    // Mac OS X specific setup
} else if (xplat.isLinux) {
    // Linus specific setup
    // NOTE: can use isUnix to cover AIX, BSD, Linux & Solaris
} else {
    // message for unsupported platform
}

Documentation

To create the JSDoc documentation in the docs folder:

npm run gen:docs

To view the documentation:

npm run view:docs

or open out/index.js in a web browser.

Tests

npm test

Changes

See the CHANGELOG.md file.

1.0.0

6 years ago