UNPKG

contexta

Version:

A React-inspired Context API for Node.js with async/await support. Supported in nodejs, bun, and deno via async-local-storage.

11 lines (10 loc) 395 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = createContext; const Context_1 = __importDefault(require("./Context")); function createContext(defaultValue) { return new Context_1.default(defaultValue); }