lib/ast.js
function Importer(opts) {
  var self = this;
  opts = opts || {};
  EventEmitter.call(this);
  this.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();
  this.file = opts.file ? path.resolve(opts.cwd, opts.file) : this.cwd;
  this.data = opts.data;
  this.includePaths = opts.includePaths || [];

  // Map all include paths to configured working directory:
  this.includePaths = this.includePaths.map(function(includePath) {
    return path.resolve(self.cwd, includePath);
  });
}
function Importer(opts) {
  var self = this;
  opts = opts || {};
  EventEmitter.call(this);
  this.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();
  this.file = opts.file ? path.resolve(opts.cwd, opts.file) : this.cwd;
  this.data = opts.data;
  this.includePaths = opts.includePaths || [];

  // Map all include paths to configured working directory:
  this.includePaths = this.includePaths.map(function(includePath) {
    return path.resolve(self.cwd, includePath);
  });
}
function Importer ( opts ) { var self = this ; opts = opts || { } ; EventEmitter . call ( this ) ; this . cwd = opts . cwd ? path . resolve ( opts . cwd ) : process . cwd ( ) ; this . file = opts . file ? path . resolve ( opts . cwd , opts . file ) : this . cwd ; this . data = opts . data ; this . includePaths = opts . includePaths || [ ] ; // Map all include paths to configured working directory: this . includePaths = this . includePaths . map ( function ( includePath ) { return path . resolve ( self . cwd , includePath ) ; } ) ; }
File Importer
Primary engine for managing and resolving file imports.
Manages options and serves as a central cache for resolved files.
Also the primary event bus for messaging file import actions.
File Importer Primary engine for managing and resolving file imports . Manages options and serves as a central cache for resolved files . Also the primary event bus for messaging file import actions .