dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/user-home/cli.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

26 lines
422 B
JavaScript
Executable file

#!/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);