1.0.2 • Published 5 years ago

@carterjs/parse v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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
});