• Version 6.17.0
  • Published
  • 38.1 kB
  • No dependencies
  • MIT license


npm i envfile
yarn add envfile
pnpm add envfile


Parse and stringify the environment configuration files and format, also known as .env files and dotenv files



Type Aliases


function parse

parse: (src: string) => Data;
  • Parse an envfile string.

function stringify

stringify: (obj: Input) => string;
  • Turn an object into an envfile string.

Type Aliases

type Data

type Data = Record<string, string>;
  • We don't normalize anything, so it is just strings and strings.

type Input

type Input = Record<string, any>;
  • We typecast the value as a string so that it is compatible with envfiles.

Package Files (1)

Dependencies (0)

No dependencies.

Dev Dependencies (20)

Peer Dependencies (0)

No peer dependencies.


To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/envfile.

  • Markdown
  • HTML
    <a href="https://www.jsdocs.io/package/envfile"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>