Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/direction/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #!/usr/bin/env node
'use strict'
var pack = require('./package.json')
var direction = require('.')
var argv = process.argv.slice(2)
if (argv.indexOf('--help') !== -1 || argv.indexOf('-h') !== -1) {
console.log(help())
} else if (argv.indexOf('--version') !== -1 || argv.indexOf('-v') !== -1) {
console.log(pack.version)
} else if (argv.length === 0) {
process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin.on('data', function(data) {
console.log(direction(data))
})
} else {
console.log(direction(argv.join(' ')))
}
function help() {
return [
'',
' Usage: ' + pack.name + ' [options] <words...>',
'',
' ' + pack.description,
'',
' Options:',
'',
' -h, --help output usage information',
' -v, --version output version number',
'',
' Usage:',
'',
' # output directionality',
' $ ' + pack.name + ' @',
' # ' + direction('@'),
'',
' # output directionality from stdin',
" $ echo 'الانجليزية' | " + pack.name,
' # ' + direction('الانجليزية'),
''
].join('\n')
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.053 ]-- |