Show package title in HTML


I created my own titlebar in my first electronapp. But I can’t find anything about to print the appname as tile in the titlebar.
I have searched a lot and find nothing about. So I decided to publish my solution here for another who need this:

var appVersion = require('electron');
$('.titlebar .title').html(appVersion);

This is for using inside renderer process. Here I use jQuery.

Kind Regrads