Go to file
Talia 0e63167c92 Mildly refactor skooma.js 2023-09-18 09:00:12 +02:00
page Add better description for skooma/bind 2023-03-06 10:54:34 +01:00
better.js Refactor Better.js 2022-02-08 19:00:18 +01:00
css.js Change $ in CSS to prefix placeholder 2022-06-09 14:03:19 +02:00
css.md Add markdown file documenting css.js features 2021-10-19 20:37:04 +02:00
debounce.js Add "running" property to debounce wrapper 2022-02-08 15:27:55 +01:00
element.js Fix silly bug in deferred method queue 2022-09-17 09:03:24 +02:00
index.html Document speaker class 2022-07-02 10:55:38 +02:00
license Initial commit 🎊 2020-10-27 16:28:02 +01:00
listener.js Change listener map to weak map 2023-03-06 10:54:20 +01:00
listener.md Document listener 2022-03-17 09:49:57 +01:00
meta.js Add meta helper 2022-06-13 15:43:07 +02:00
pqueue.js Document pqueue (somewhat) 2022-07-01 10:02:03 +02:00
readme.md Update module list in readme 2022-07-01 10:02:18 +02:00
skooma.js Mildly refactor skooma.js 2023-09-18 09:00:12 +02:00
skooma.md Extend skooma.text function to support template strings 2021-12-26 17:54:04 +01:00
speaker.js Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01:00
speaker.md Split ImmediateSpeaker into separate class 2021-11-25 10:37:16 +01: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
use.js Make use.js remove the use attribute to prevent repetition 2022-07-01 09:24:14 +02:00
use.md Add use.whenReady function 2021-11-03 20:51:17 +01:00



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?


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.


the second iteration of improved HTMLElement but this time in a function to support inheriting from other classes for extending builtin elements.


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


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


Simple messaging helper that uses microtasks by default.


Debouncing wrapper for functions to avoid repeated execution of expensive code.


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


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.


Allows you to apply code to HTML elements by looking for a use attribute and running it as code on the element.


Ensures in-order promise resolution and optionally limits parallel execution.