node-dextrin - v0.1.0
    Preparing search index...

    Class export=

    DXN keyword (:name in value position), untrusted-decode shape. The trusted-decode shape (the default) is a real, global Symbol.for(name) instead — see the top-level decode/decodeBinary trusted: option, once the text/binary codecs land.

    Symbol.for is a genuine JS primitive, globally interned by string — the closest native analog to a BEAM atom (which is why the trusted path uses it directly rather than another wrapper class). This class exists for the untrusted path, for the same reason Dextrin.Keyword exists in Elixir: decoding attacker-controlled text/binary must never be forced through any process-lifetime interning table (Symbol.for's global symbol registry is never garbage collected, same risk profile as a BEAM atom table).

    Index
    dxnType: string
    name: string
    • Returns symbol

      Symbol.for(name) — an explicit, deliberate opt-in to global-registry interning (the same reason this class exists in the first place), so this conversion is never called implicitly by decode itself.