During a web assessment is common to find some outdated JavaScript library. I like to showcase the version of the outdated library in a console print with the URL where it loaded. Below is the list of console commands, to get their versions.
Angular
getAllAngularRootElements()[0].attributes["ng-version"].value //'7.2.11'
AngularJS
angular.version //{full: '1.5.6', major: 1, minor: 5, dot: 6, codeName: 'arrow-stringification'}
Bootstrap
$.fn.tooltip.Constructor.VERSION //'3.4.1'
CKEditor
CKEDITOR.version //'4.18.0'
Dojo
[dojo.version.major, dojo.version.minor, dojo.version.patch].join("."); //'1.10.1'
Highcharts
Highcharts.version //'10.0.0'
jQuery
$.fn.jquery // '1.10.2'
$().jquery; // '1.10.2'
jQuery-UI
$.ui.version '1.8.1'
Lightstreamer
Lightstreamer.version //'8.0.1'
Moment.js
moment.version //'2.10.1'
Numbro
numbro.version //'1.5.1'
Requirejs
requirejs.version //'2.3.2'
Was this post helpful?
Let us know if you liked the post.