preprocessors/togeojson-kml.preprocessor.js
function archiveOriginal(callback) {
      const archivedOriginal = path.join(outdirectory, '/archived.kml');
      const infileContents = fs.readFileSync(infile);

      fs.writeFile(archivedOriginal, infileContents, (err) => {
        if (err) return callback(err);
        return callback();
      });
    }
function archiveOriginal(callback) {
      const archivedOriginal = path.join(outdirectory, '/archived.kml');
      const infileContents = fs.readFileSync(infile);

      fs.writeFile(archivedOriginal, infileContents, (err) => {
        if (err) return callback(err);
        return callback();
      });
    }
function archiveOriginal ( callback ) { const archivedOriginal = path . join ( outdirectory , '/archived.kml' ) ; const infileContents = fs . readFileSync ( infile ) ; fs . writeFile ( archivedOriginal , infileContents , ( err ) => { if ( err ) return callback ( err ) ; return callback ( ) ; } ) ; }
Archive original kml file
Archive original kml file