HEX
Server: Apache
System: Linux WWW 6.1.0-40-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.153-1 (2025-09-20) x86_64
User: web11 (1011)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //var/www/intranet.kauko.lt/wp-content/plugins/jonradio-private-site/library/node-uuid/bin/uuid
#!/usr/bin/env node

var path = require('path');
var uuid = require(path.join(__dirname, '..'));

var arg = process.argv[2];

if ('--help' === arg) {
  console.log('\n  USAGE: uuid [version] [options]\n\n');
  console.log('  options:\n');
  console.log('  --help                     Display this message and exit\n');
  process.exit(0);
}

if (null == arg) {
  console.log(uuid());
  process.exit(0);
}

if ('v1' !== arg && 'v4' !== arg) {
  console.error('Version must be RFC4122 version 1 or version 4, denoted as "v1" or "v4"');
  process.exit(1);
}

console.log(uuid[arg]());
process.exit(0);