environment:Node轻松配置Node.js的环境变量

时间:2021-05-14 17:33:20
【文件属性】:
文件名称:environment:Node轻松配置Node.js的环境变量
文件大小:188KB
文件格式:ZIP
更新时间:2021-05-14 17:33:20
nodejs config environment typescript configuration 环境 Node.js的环境变量配置变得容易。 问题 许多应用程序需要确保从一开始就设置了一些环境变量,并且每次都需要检查process.env的值是否undefined因此非常麻烦。 environment允许应用程序确保根据您对有效的定义设置必需的env变量并使其有效。 看看。 目录 makeEnv(schema: Schema, processEnv?: { [key: string]: string | undefined }): Env 解析器 parsers.string(value: string): string parsers.boolean(value: string): boolean parsers.integer(value: string): number parsers.float(value: string): number parsers.em
【文件预览】:
environment-develop
----release.config.js(614B)
----.nvmrc(5B)
----package.json(3KB)
----.github()
--------PULL_REQUEST_TEMPLATE.md(0B)
--------ISSUE_TEMPLATE.md(0B)
--------config.yml(816B)
--------stale.yml(684B)
----.prettierignore(27B)
----jest.config.js(558B)
----prettier.config.js(67B)
----LICENSE(1KB)
----azure-pipelines.yml(2KB)
----CONTRIBUTING.md(1KB)
----src()
--------environment.ts(3KB)
--------EnvironmentVariableError.test.ts(556B)
--------debug.ts(104B)
--------index.test.ts(775B)
--------EnvironmentVariableError.ts(173B)
--------environment.test.ts(4KB)
--------parsers.ts(5KB)
--------index.ts(657B)
--------parsers.test.ts(8KB)
----.npmignore(89B)
----.eslintrc.js(2KB)
----tsconfig.json(807B)
----dangerfile.ts(544B)
----husky.config.js(138B)
----examples()
--------server()
----azure-pipelines()
--------install.yml(225B)
--------test.yml(56B)
----.gitignore(123B)
----.codecov.yml(27B)
----CHANGELOG.md(4KB)
----commitlint.config.js(70B)
----CODE_OF_CONDUCT.md(3KB)
----.npmrc(33B)
----README.md(12KB)
----yarn.lock(419KB)
----.eslintignore(37B)
----.editorconfig(331B)
----.gitattributes(12B)
----lint-staged.config.js(97B)
----babel.config.js(794B)
----.vscode()
--------launch.json(601B)

网友评论