Go to file
Talia fdbae44a8f
Add simple ULID generator
2021-09-20 20:48:55 +02:00
better.js Rework attribute handling in Better 2021-08-03 16:32:19 +02:00
css.js Change CSS variable helper to proxy 2021-08-18 11:57:07 +02:00
license Initial commit 🎊 2020-10-27 16:28:02 +01:00
listener.js Add support for repeated callbacks to listener 2021-09-13 19:21:00 +02:00
listener.md Write documentation for listener, speaker and skooma 2021-09-13 22:20:03 +02:00
readme.md Add ObjectStorage object implementing Storage API 2021-09-20 11:39:29 +02:00
skooma.js Add support for initialisation function to skooma 2021-09-13 18:54:07 +02:00
skooma.md Add more examples to show off skooma's features 2021-09-13 22:38:25 +02:00
speaker.js Add speaker class, completing the black hand 2021-09-13 18:54:32 +02:00
speaker.md Write documentation for listener, speaker and skooma 2021-09-13 22:20:03 +02:00
storage.js Add ObjectStorage object implementing Storage API 2021-09-20 11:39:29 +02:00
template.js Add comments documenting what stuff does 2021-06-23 16:21:33 +02:00
ulid.js Add simple ULID generator 2021-09-20 20:48:55 +02:00

readme.md

DarkWiiPlayer/JS

A collection of general-purpose Javascript snippets/modules that I end up copy-pasting around more often than necessary.


So what does it all do?

Better

an "improved" version of the builtin HTMLElement that's hopefully a lot easier to build actual things with. It's really just another utility layer.

CSS

Generate CSS from JS objects. Yes, you can generate CSS from JSON now. Or from YAML. Or from whatever you want, really.

Listener

A proxy object that fires a callback when certain (or all) properties are changed.

Speaker

Simple messaging helper that uses microtasks by default.

Skooma

Generate HTML and SVG DOM nodes more easily and do stuff with them. Feels like an in-between of using a templating language and writing lisp code. Overall very recommendable.

Template

Turns template literals directly into HTML templates. Just read the code, it's like 5 lines or so.

Storage

Currently a sngle class ObjectStorage implementing the API of the Storage class using a plain JS Map as backend. This is mostly meant as a page-local fallback to LocalStorage and SessionStorage