Skip to content
Standalone helper arrow functions (ES6) in 1 line.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
lib
.editorconfig
.gitignore
.travis.yml
CHANGELOG.md
DOCUMENTATION.md
LICENSE
README.md
index.js
jsconfig.json
logo.svg
package.json
tsconfig.json

README.md

@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.
cry: Curry the given function.
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.
pad: Add padding zeros to passed number.
rnd: Random string generator (up to 10 characters).
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.

You can’t perform that action at this time.