title: How to get the duration of a mp3 file using Cloud Functions for FIrebase when uploaded to firebase storage
body: <p>I am in the process of building a music library for a dance app. Currently I have the Cloud Function automatically create an database instance when a mp3 file is uploaded to Firebase storage, I still need to fetch the duration of that mp3 file in seconds somehow and store that info in database. I am new to javascript and first time doing node.js, some sources point to using the mp3 metadata which I have no experience playing with either. Some help would be much appreciated.</p>