@orderlycode/env
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

env

환경변수 초기화에 schema 검증을 한다. dotenv를 사용하기 때문에 그에 맞춰서 .env 파일을 생성하면 된다.

예제

import * as dotenv from "dotenv";
import {initEnv, z} from '@orderlycode/env';

dontenv.config();
const env = initEnv({
  name: z.string(),
  age: z.string().transform(Number),
});

Readme

Keywords

none

Package Sidebar

Install

npm i @orderlycode/env

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

3.38 kB

Total Files

9

Last publish

Collaborators

  • inithink