1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/user-home/cli.js

27 lines
422 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
#!/usr/bin/env node
'use strict';
var pkg = require('./package.json');
var userHome = require('./');
function help() {
console.log([
pkg.description,
'',
'Example',
' $ user-home',
' /Users/sindresorhus'
].join('\n'));
}
if (process.argv.indexOf('--help') !== -1) {
help();
return;
}
if (process.argv.indexOf('--version') !== -1) {
console.log(pkg.version);
return;
}
process.stdout.write(userHome);