A package to download apk based on package name from various sources
npm i any-apk-dl
const anyApkDl=require("any-apk-dl");
const provider=anyApkDl();
provider.download("com.whatsapp","./apks/").then(res=>{
console.log(res);
})
On Successful download these information will be available
{
download_status: 'success',
file_name: 'com.whatsapp.apk',
full_path: './apks/com.whatsapp.apk'
}