lib/picklr.js
function Picklr (startDir, options) {
  options = options || {};

  let defaultExcludeDirsRe;
  if (/^\./.test(startDir)) {
    defaultExcludeDirsRe = /\/\.|node_modules/i;
  } else {
    defaultExcludeDirsRe = /^\.|\/\.|node_modules/i;
  }

  this.totalFileCount = 0;
  this.matchedFileCount = 0;
  this.startDir = startDir || '.';
  this.targetText = options.targetText || '';
  this.replacementText = options.replacementText || '';
  this.action = options.action || 'echo';
  this.includeExts = options.includeExts || ['.js'];
  this.excludeDirs = options.excludeDirsRe || defaultExcludeDirsRe;
  this.logger = options.logger || console.log;

  this.picklrActions = picklrActions;
}
function Picklr (startDir, options) {
  options = options || {};

  let defaultExcludeDirsRe;
  if (/^\./.test(startDir)) {
    defaultExcludeDirsRe = /\/\.|node_modules/i;
  } else {
    defaultExcludeDirsRe = /^\.|\/\.|node_modules/i;
  }

  this.totalFileCount = 0;
  this.matchedFileCount = 0;
  this.startDir = startDir || '.';
  this.targetText = options.targetText || '';
  this.replacementText = options.replacementText || '';
  this.action = options.action || 'echo';
  this.includeExts = options.includeExts || ['.js'];
  this.excludeDirs = options.excludeDirsRe || defaultExcludeDirsRe;
  this.logger = options.logger || console.log;

  this.picklrActions = picklrActions;
}
The Picklr object.

@constructor