import*ashanimefrom'hanime-extractor'(async()=>{// get search resultsconstoutput=awaithanime.search('hajimete',['loli'],'likes','asc',0)console.log(output)// get video info using slug gotten from above stepconstvideoInfo=awaithanime.getVideoMedia('hajimete-no-orusuban-2')console.log(videoInfo)// download video using results from above steps// can also be used to download same filetype videos from other sources than hanimeconstfile=awaithanime.downloadVideo(videoInfo[1].url,'./video/')console.log(file)})()