Skip to content

Commit

Permalink
feat: provide default export
Browse files Browse the repository at this point in the history
  • Loading branch information
antongolub committed Dec 30, 2024
1 parent d5d61c1 commit f4d9f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/ts/envapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ export const loadSafe = (...files: string[]): NodeJS.ProcessEnv =>
export const config = (def = '.env', ...files: string[]): NodeJS.ProcessEnv =>
Object.assign(process.env, loadSafe(def, ...files))

export default { parse, stringify, load, loadSafe, config }
4 changes: 4 additions & 0 deletions src/main/ts/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
import {config, load, loadSafe, parse, stringify} from './envapi.js'

export * from './envapi.ts'

export default { parse, stringify, load, loadSafe, config }

0 comments on commit f4d9f34

Please sign in to comment.