devebot-cli
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,13 +0,15 @@ | ||
/* | ||
* devebot-cli | ||
* https://github.com/devebot | ||
*/ | ||
'use strict'; | ||
var fs = require('fs'); | ||
// Project metadata. | ||
var pkg = require('../../package.json'); | ||
var pkg = JSON.parse(fs.readFileSync(__dirname + '/../../package.json', 'utf8')); | ||
var appinfo = {}; | ||
// Commandline user-agent | ||
appinfo.useragent = [pkg.name, '/', pkg.version].join(''); | ||
// Commandline header. | ||
exports.displayCliHeader = function() { | ||
appinfo.displayCliHeader = function() { | ||
console.log('%s: %s (v%s)', pkg.name, pkg.description, pkg.version); | ||
@@ -17,3 +19,3 @@ }; | ||
// Commandline footer. | ||
exports.displayCliFooter = function() { | ||
appinfo.displayCliFooter = function() { | ||
[ | ||
@@ -27,1 +29,3 @@ "", | ||
}; | ||
module.exports = appinfo; |
{ | ||
"name": "devebot-cli", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "command line interface", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
7788
3