@carterjs/parse

A helper function for parsing the content of inline and external scripts

Usage no npm install needed!

<script type="module">
  import carterjsParse from 'https://cdn.skypack.dev/@carterjs/parse';
</script>

README

Parse

A helper function for parsing the content of inline and external scripts

Usage

HTML

<script type="<TYPE>">
    // Script content
</script>

or

<script type="<TYPE>" src="<FILE>"></script>

JS

parse("<TYPE>", function(text, script) {
    // Parse the text content of the script
});