There was a small project I did which required the IMEI number to be read. I used the following code to read the IMEI number on Android using NativeScript.

AndroidManifest.xml

NativeScript code

function getIMEI(){
    var context = utils.ad.getApplicationContext();
    var tm = context.getSystemService(android.content.Context.TELEPHONY_SERVICE);
    return tm.getDeviceId()
}

Then call getIMEI() where there is a need. Simple.