Skip to content

Commit b9b22d0

Browse files
committed
init
0 parents  commit b9b22d0

File tree

9 files changed

+5030
-0
lines changed

9 files changed

+5030
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
dist/
3+
coverage/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 GalvinPython
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ManagedEnv
2+
ManagedEnv is a lightweight, zero-dependency environment variable management package. It allows you to define, load, and validate environment variables with ease, making it a powerful tool for managing your application's configuration and environment variables.
3+
4+
# Features
5+
Features of ManagedEnv are that:
6+
- It's type-safe
7+
- Auto-casted typings means that you can easily see variables that exist or don't exist
8+
- Declare required and optional variables
9+
- Scope your variables to different projects (useful in monorepo settings)
10+
- Set fallback environment variables (such as ports)

jest.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { createDefaultPreset } from 'ts-jest';
2+
3+
const tsJestTransformCfg = createDefaultPreset().transform;
4+
5+
/** @type {import('jest').Config} */
6+
export default {
7+
testEnvironment: 'node',
8+
transform: {
9+
...tsJestTransformCfg,
10+
},
11+
extensionsToTreatAsEsm: ['.ts'],
12+
globals: {
13+
'ts-jest': {
14+
useESM: true
15+
}
16+
},
17+
collectCoverage: true,
18+
coverageDirectory: 'coverage',
19+
coverageReporters: ['json', 'lcov', 'text'],
20+
};

0 commit comments

Comments
 (0)