Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/enum/lib/enum.js>default.register

Enum is a javascript module that introduces the Enum Type. It works for node.js, in the browser and for deno.
Latest
method default.register
import { default } from "https://deno.land/x/enum@v3.0.4/lib/enum.js";

Registers the Enum Type globally in node.js.

Parameters

optional
key = [UNSUPPORTED]

Global variable. [optional]