Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
3b39095a9This file is pinned to the selected release. Download the original to open it in your design tool.
const version = require('../package.json').version
function env () {
var env = 'OpenJSCAD ' + version
if (typeof document !== 'undefined') {
var w = document.defaultView
env = env + ' [' + w.navigator.userAgent + ']'
} else {
if (typeof require === 'function') {
var os = require('os')
env = env + ' [' + os.type() + ':' + os.release() + ',' + os.platform() + ':' + os.arch() + ']'
}
}
console.log(env)
}
module.exports = env