Catalog npm
PACKAGE EXPLORERView in registry

@0disoft/universal-config-engine-node

npm

Node.js JSON file, dotenv file, process env, and argv sources for Universal Config Engine.

configconfigurationdotenvenvironmentnode
Versions collected21
Direct dependencies2From release 1.1.2
Last observed20 Oct, 22:09 UTC

README

Current package documentation

@0disoft/universal-config-engine-node

Bounded Node.js source adapters for Universal Config Engine. The package provides JSON file, simple dotenv file, process environment, and argv sources while keeping filesystem and process APIs outside the core package.

Install

npm install @0disoft/universal-config-engine-core @0disoft/universal-config-engine-node

Node.js >=24 and ESM are required.

Process Environment Source

import { resolveConfig } from "@0disoft/universal-config-engine-core";
import { createProcessEnvSource } from "@0disoft/universal-config-engine-node";

const envSource = createProcessEnvSource({
  descriptor: {
    id: "env",
    kind: "process-env",
    priority: 20,
    displayName: "environment"
  },
  env: process.env,
  mappings: [
    {
      externalName: "APP_PORT",
      sourceKind: "process-env",
      targetPath: ["service", "port"],
      parseAs: "number"
    }
  ]
});

const result = resolveConfig({ sources: [envSource] });
console.log(result.config.service.port);

File Sources

loadJsonFileSource and loadDotenvFileSource enforce byte limits. Set allowedRootPath to bind file loading to a canonical directory; the loader verifies the opened file identity before reading it. The dotenv parser is intentionally simple and does not perform shell expansion.

JSON source locations also have an independent maxLocationBytes budget (default 4 MiB of compact UTF-8 location records). If exceeded, the loader preserves parsed config values, omits location metadata and returns a max_location_bytes_exceeded warning. This option does not replace file byte or structural depth/key limits and is not a total JavaScript heap limit.

Process-env and argv adapters use explicit mappings and bounded entry counts. Strict unmapped-input diagnostics are opt-in.

See the compatibility contract and public API contract.

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 21

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.2Registry latest20 Oct 20262
1.1.2-rc.120 Oct 20262
1.1.120 Oct 20262
1.1.1-rc.120 Oct 20262
1.1.020 Oct 20262
1.1.0-rc.120 Oct 20262
1.0.019 Oct 20262
1.0.0-rc.519 Oct 20262
1.0.0-rc.411 Aug 20262
1.0.0-rc.322 Jul 20262
1.0.0-rc.215 Jul 20262
1.0.0-rc.114 Jul 20262
0.6.014 Jul 20262
0.5.014 Jul 20262
0.4.011 Jul 20261
0.3.111 Jul 20261
0.3.010 Jul 20261
0.2.110 Jul 20261
0.2.08 Jul 20261
0.1.28 Jul 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0disoft/universal-config-engine

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:b825da760ab4015f574a5cd95f99e180eeac557988828e72af246c64fef87894