db/parseJqueryFiles.js
// PARSE JQUERY API LIST TO CREATE METHOD ARRAY
PARSE JQUERY API LIST TO CREATE METHOD ARRAY
PARSE JQUERY API LIST TO CREATE METHOD ARRAY
function genMethodList(){
  let methodsList = [];
  const body = fs.readFileSync(__dirname + '/tmp/jquery-api.html');
  const $ = cheerio.load(body);
  $(".entry-title").each( (i, el) => {
    const data_url = $(el).children('a:first-child').attr('href').split('/')[3];
    methodsList.push(data_url);
  });
  return methodsList;
}
function genMethodList ( ) { let methodsList = [ ] ; const body = fs . readFileSync ( __dirname + '/tmp/jquery-api.html' ) ; const $ = cheerio . load ( body ) ; $ ( ".entry-title" ) . each ( ( i , el ) => { const data_url = $ ( el ) . children ( 'a:first-child' ) . attr ( 'href' ) . split ( '/' ) [ 3 ] ; methodsList . push ( data_url ) ; } ) ; return methodsList ; }
PARSE JQUERY API LIST TO CREATE METHOD ARRAY
PARSE JQUERY API LIST TO CREATE METHOD ARRAY
//Add each section within api-doc as object to methods