Skip to content

Instantly share code, notes, and snippets.

View clshortfuse's full-sized avatar
😀
Reinventing the internet...

Carlos Lopez clshortfuse

😀
Reinventing the internet...
  • 10:36 (UTC -04:00)
View GitHub Profile
@clshortfuse
clshortfuse / JSONEventSource.js
Created January 14, 2023 06:15
EventSource extension with JSON parsing and FireFox workaround
/**
* @implements {EventSource}
*/
export default class JSONEventSource {
#closeCalled;
#url;
#initArgs;
@clshortfuse
clshortfuse / builder.js
Created March 6, 2023 21:05
JS XML Parser and Builder
/**
* @template T
* @typedef {import('./index.js').TupleTree<T>} TupleTree<T>
*/
/**
* @template T
* @typedef {import('./index.js').TupleTreeEntry<T>} TupleTreeEntry<T>
*/