0.0.1 • Published 8 years ago

get-inline-script-api v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

#get inline script api

Fetches specific html attributes prefixed with unique identifier, returns a hash.

##example

<script
  id="blah"
  my-api-foo="horse"
  my-api-bar="fish"
  my-api-fizz="buzz">
</script>
var api = getApi( document.querySelector('#blah'), 'my-api-' );
// => { 'foo': 'horse', 'bar': 'fish', 'fizz': 'buzz' }