Socket
Book a DemoInstallSign in
Socket

utx-config

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry
One or more versions of this package were compromised as part of the ongoing “North Korea’s Contagious Interview Campaign” supply chain attack.

utx-config

configuration of ultrax

unpublished
latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

utx-config

npm version

A modular configuration and utility toolkit for UTX-based decentralized applications. Designed to simplify environment management, application bootstrapping, and shared logic across blockchain-enabled services.

Features

  • 🔧 Centralized config management for UTX dApps
  • 💠 Shared utilities for staking, pooling, and DEX integrations
  • 📘 TypeScript support with complete typings
  • 📦 Compatible with monorepo and modular architectures
  • 🧪 Unit-tested with extensibility in mind

Installation

Using npm:

npm install utx-config --save

Or with yarn:

yarn add utx-config

Usage

const { loadConfig, validateRequiredEnv } = require('utx-config');

const config = loadConfig(); validateRequiredEnv(['DEX_API_URL', 'PRIVATE_KEY']);

import { getNetworkSettings, isProd } from 'utx-config';

if (isProd()) {
  const settings = getNetworkSettings('mainnet');
  console.log(settings.rpcUrl);
}

Configuration Format

utx-config/ ├── index.js ├── env/ │ ├── validator.ts │ └── loader.ts ├── network/ │ └── settings.ts ├── utils/ │ └── helpers.ts ├── types/ │ └── index.d.ts

Example Output

[utx-config] ✅ Environment validated.
[utx-config] 🌐 Loaded config for 'mainnet'.

License

MIT © utx-labs

Contributing

We welcome contributions! If you have utility functions, config formats, or blockchain-specific extensions that could help others in the UTX ecosystem, feel free to submit a PR.

Keywords

log

FAQs

Package last updated on 04 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts