gonzal-xplat

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i gonzal-xplat

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

12.8 kB

Total Files

10

Last publish

Collaborators

  • algonzalez