@kdt310722/config
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@kdt310722/config

npm version npm downloads ci coverage issues license

Simple config parser and validate using Zod for Javascript / Typescript project

Usage

Install package:

# npm
npm install @kdt310722/config

# yarn
yarn add @kdt310722/config

# pnpm
pnpm install @kdt310722/config

# bun
bun install @kdt310722/config

Import:

// ESM
import { defineConfig } from '@kdt310722/config'

// CommonJS
const { defineConfig } = require('@kdt310722/config')

Use:

const config = defineConfig({
    key: z.string().default('value'),
})

console.log(config.parse())

License

Published under MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i @kdt310722/config

Weekly Downloads

0

Version

0.0.4

License

MIT

Unpacked Size

98.6 kB

Total Files

64

Last publish

Collaborators

  • kdt310722