#!/usr/bin/env node

/**
 * Now use CoffeeScript.
 */
require('coffee-script/register');

/**
 * Importing local modules.
 */
var program = require('./program');
var processor = require('./processor');
var utils = require('./utils');

if (require.main === module ) {
	// Parses and processes command line arguments.
	program.parse(process.argv);
	processor.process(program);
} else { // Library mode.
    module.exports.verify = utils.verify;
    module.exports.isCryptInstalled = utils.isCryptInstalled;
}
#!/usr/bin/env node

/**
 * Now use CoffeeScript.
 */
require('coffee-script/register');

var program, processor, utils;

if (require.main === module ) {
	// Parses and processes command line arguments.
	program = require('./program');
	processor = require('./processor');
	program.parse(process.argv);
	processor.process(program);
} else { // Library mode.
	utils = require('./utils');
    module.exports.verify = utils.verify;
    module.exports.isCryptInstalled = utils.isCryptInstalled;
}
Fix native prototype pollution in library mode Since `processor` has the package `colors` as an upstream dependency, String` s prototype would get unexpectedly modified. This commit fixes that issue by only loading `processor` if really needed.