UNPKG
parse-dotenv
Version:
latest (2.1.0)
2.1.0
2.0.1
2.0.0
1.0.2
1.0.1
Zero dependency .env to object parser
github.com/codeshifu/parse-dotenv
codeshifu/parse-dotenv
parse-dotenv
/
dist
/
parse-dotenv.d.ts
10 lines
(9 loc)
•
236 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
interface
Options
{
emptyLines
?:
boolean
;
comments
?:
boolean
; }
interface
EnvObject
{ [
key
:
string
]:
any
; }
declare
const
parseEnv
:
(
path
?:
string
|
undefined
,
opts
?:
Options
) =>
EnvObject
;
export
default
parseEnv;