@vangware/microndeprecated

Standalone helper functions in 1 line

Usage no npm install needed!

<script type="module">
  import vangwareMicron from 'https://cdn.skypack.dev/@vangware/micron';
</script>

README

@vangware/micron

[Micron logo]

[NPM Version] [Build Status]

Standalone helper functions in 1 line. Useful for code injection, bookmarklets & debugging.

ael: Listen to several events on an element or a group of elements.
atr: Set several attributes of an element or a group of elements.
cks: Get the current document cookies in object form.
cne: Creates a new element.
css: Set several styles of an element or a group of elements.
del: Remove an element or a group of elements from the DOM.
dom: Parse string into DOM.
get: Alias for querySelectorAll in an array.
mrx: Takes a string and an object and makes a regex map replace.
obj: Creates a clean object.
tsh: Timestamp string hash generator (up to 8 characters).
url: Parse an object into a simple string in URL format for XHR.
xhr: Alias for new XMLHttpRequest, with GET method by default.

Check the documentation for more details. You can also check the changelog.

If you are looking for a more robust solution, take a look at @vangware/micro.