index.js
function (snippets, options) {
    if (typeof snippets === 'string') {
      var glob = lazy.glob();
      var files = glob.sync(snippets, options);
      files.forEach(function (fp) {
        var key = fp.split('.').join('\\.');
        this.set(key, {path: fp});
      }.bind(this));
    }
    return this;
  }
function (snippets, options) {
    if (typeof snippets === 'string') {
      var glob = lazy.glob();
      var files = glob.sync(snippets, options);
      files.forEach(function (fp) {
        var key = fp.split('.').join('\\.');
        this.set(key, {path: fp});
      }.bind(this));
    }
    return this;
  }
function ( snippets , options ) { if ( typeof snippets === 'string' ) { var glob = lazy . glob ( ) ; var files = glob . sync ( snippets , options ) ; files . forEach ( function ( fp ) { var key = fp . split ( '.' ) . join ( '\\.' ) ; this . set ( key , { path : fp } ) ; } . bind ( this ) ) ; } return this ; }
Load a glob of snippets.
@param  {String|Array} `snippets
@param  {Object} `options`
@return {Object} `Snippets` for chaining
@name .load
@api public
Load a glob of snippets .