Lets say I am using the turndown
Javascript package:
https://github.com/mixmark-io/turndown
and loading it this way in my HTML:
<script src="https://unpkg.com/turndown/dist/turndown.js"></script>
This loads the following:
and makes TurnDown
service available to be used as such:
var turndownService = new TurndownService({ headingStyle: 'atx', emDelimiter : '*' });
Is it possible to console.log
the entire script which has been loaded by the above script
tag? Aka, is it possible to log the following:
var TurndownService = (function () {
'use strict';
function extend (destination) { ........
.....
return TurndownService;
}());
The reason I need to do this is that I want to pass these third party scripts to a WebView in iOS using webkit handlers.