NH_base

Base library usable any time.

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greasyfork.org/scripts/477290/1869418/NH_base.js

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Autor
Mike Castle (Nexus)
Version
72
Erstellt am
12.10.2023
Letzte Aktualisierung
07.07.2026
Größe
71,3 KB
Lizenz
GPL-3.0-or-later

lib/base - A NexusHoratio library.

Pure JavaScript stuff. Nothing here should be WEB API aware, except Logger's use of console (and apparently crypto).

Exported properties (as of version 71)

  • version - Bumped per release.
  • NOT_FOUND - Returned by some APIs like findIndex().
  • ONE_ITEM - Useful for testing length of an array.
  • LAST_ITEM - Identify the last item in a collection like at(-1).
  • ensure - Ensures appropriate versions of NexusHoratio libraries are loaded.
  • Code - Mapping of Google's Canonical Error Codes.
  • Dispatcher - Simple dispatcher (event bus).
  • MessageQueue - A simple message system that will queue messages to be delivered.
  • issues - NexusHoratio libraries and apps should post issues to this MessageQueue.
  • DefaultMap - Subclass of Map similar to Python's defaultdict.
  • Logger - Fancy-ish log messages (likely over engineered).
  • uuId - Create a UUID-like string with a base.
  • safeId - Normalize a string to be safe to use as an HTML element id.
  • strHash - Jenkins one at a time hash.
  • sha256 - Compute the SHA-256 digest of a string (deprecated).
  • simpleParseWords - Separate a string of concatenated words along transitions.
  • Service - Base class for building services that can be turned on and off.

More details are in base.js as JSDoc.