src/seeder.js
function getSeedsAtLocation(location) {
  // load the file as JSON
  const result = require(location);

  // Ensure the output is an array
  if (Array.isArray(result)) {
    return _.forEach(result, unmarshalBuffer);
  } else {
    return [ unmarshalBuffer(result) ];
  }
}
function getSeedsAtLocation(location) {
  // load the file as JSON
  const result = require(location);

  // Ensure the output is an array
  if (Array.isArray(result)) {
    return _.forEach(result, unmarshalBuffer);
  } else {
    return [ unmarshalBuffer(result) ];
  }
}
function getSeedsAtLocation ( location ) { // load the file as JSON const result = require ( location ) ; // Ensure the output is an array if ( Array . isArray ( result ) ) { return _ . forEach ( result , unmarshalBuffer ) ; } else { return [ unmarshalBuffer ( result ) ] ; } }
Scrapes seed files out of a given location. This file may contain
either a simple json object, or an array of simple json objects. An array
of json objects is returned.

@param {any} location the filename to read seeds from.
Scrapes seed files out of a given location . This file may contain either a simple json object or an array of simple json objects . An array of json objects is returned .