HEX
Server: LiteSpeed
System: Linux CentOS-79-64-minimal 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: vishn3436 (5293)
PHP: 8.0.15
Disabled: NONE
Upload Files
File: //data/Geometra-Web-Client-master/node_modules/.bin/undeclared-identifiers
#!/usr/bin/env node

var concat = require('simple-concat')
var undeclared = require('./')

if (arg('--help') || arg('-h')) {
  console.log('usage: undeclared-identifiers [--identifiers] [--properties] < source.js')
  process.exit(0)
}

concat(process.stdin, function (err, src) {
  if (err) throw err

  var r = undeclared(src)
  var i = arg('--identifiers') || arg('-i')
  var p = arg('--properties') || arg('-p')

  if (!i && !p) i = p = true

  if (i) r.identifiers.forEach(log)
  if (p) r.properties.forEach(log)
})

function arg (s) {
  return process.argv.indexOf(s) !== -1
}
function log (n) {
  console.log(n)
}