1.0.0 • Published 7 years ago
gonzal-xplat v1.0.0
gonzal-xplat
Provides utility items to assist in cross-platform (xplat) programming.
Installation
npm install gonzal-stuff --saveUsage
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:docsTo view the documentation:
npm run view:docsor open out/index.js in a web browser.
Tests
npm testChanges
See the CHANGELOG.md file.
1.0.0
7 years ago