<commit_before>#!/usr/bin/env node

var _ = require('lodash');
var colors = require('colors');
var conkieStats = require('./index');
var util = require('util');

conkieStats
	.register([
		'cpu',
		'disks',
		'dropbox',
		'io',
		'memory',
		'net',
		'system',
		'temperature',
		'topCPU',
		'topMemory',
	])
	.settings({
		net: {
			ignoreNoIP: true,
		},
	})
	.on('error', function(err) {
		console.log(colors.red('ERROR', err));
	})
	.on('debug', function(err) {
		console.log(colors.grey('DEBUG', err));
	})
	.on('update', function(stats) {
		// Output colorful JSON structure of system information
		console.log(util.inspect(stats, {depth: null, colors: true}));
	});<commit_msg>Main CLI app now also displays power info<commit_after>#!/usr/bin/env node

var _ = require('lodash');
var colors = require('colors');
var conkieStats = require('./index');
var util = require('util');

conkieStats
	.register([
		'cpu',
		'disks',
		'dropbox',
		'io',
		'memory',
		'net',
		'power',
		'system',
		'temperature',
		'topCPU',
		'topMemory',
	])
	.settings({
		net: {
			ignoreNoIP: true,
		},
	})
	.on('error', function(err) {
		console.log(colors.red('ERROR', err));
	})
	.on('debug', function(err) {
		console.log(colors.grey('DEBUG', err));
	})
	.on('update', function(stats) {
		// Output colorful JSON structure of system information
		console.log(util.inspect(stats, {depth: null, colors: true}));
	});
{'fraction_non_alphanumeric': 0.20966595593461265, 'fraction_numerical': 0.0, 'mean_word_length': 4.157509157509158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3235437', 'n_tokens_mistral': 559, 'n_tokens_neox': 512, 'n_words': 110}