Skip to main content
Home
This package has been archived, and as such it is read-only.

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score100%
Publisheda year ago (0.1.4)

The Config utility reads and retrieves values from a config.json file in the current directory. It loads the JSON file, parses it, and returns the value for a given key.

function Config
Config(key: string):
string
| number
| boolean
| object
| undefined

Retrieves a configuration value by key from a config.json file located in the current working directory.

Parameters

  • The key to look up in the configuration file.

Return Type

string
| number
| boolean
| object
| undefined
  • The value associated with the key, or undefined if the key is not found or an error occurs.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";
or

Import directly with a jsr specifier

import { Config } from "jsr:@blitz-bots/config";

Add Package

pnpm i jsr:@blitz-bots/config
or (using pnpm 10.8 or older)
pnpm dlx jsr add @blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";

Add Package

yarn add jsr:@blitz-bots/config
or (using Yarn 4.8 or older)
yarn dlx jsr add @blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";

Add Package

vlt install jsr:@blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";

Add Package

npx jsr add @blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";

Add Package

bunx jsr add @blitz-bots/config

Import symbol

import { Config } from "@blitz-bots/config";