Load .env variables into your quasar project
Last updated 3 months ago by hawkeye64 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @quasar/quasar-app-extension-dotenv 
SYNC missed versions from official npm registry.

Quasar App Extension dotenv

@quasar/quasar-app-extension-dotenv is an official Quasar CLI App Extension for the popular dotenv package.

@quasar/quasar-app-extension-dotenv npm


quasar ext add @quasar/dotenv

Quasar CLI will retrieve it from NPM and install the extension.


  1. "What is the name of your .env that you will be using for development builds?" The default is ".env"

  2. "What name would you like to use for your Common Root Object ('none' means to not use one)?" The default is "none" The "common root object" means off of "process.env" you will have a named object, basically for organization purposes.

  3. "Create your .env files for you?" The default is "true" (yes) If you say "yes" to this question, then your .env files will be automatically created for you.

  4. "For security, would you like your .env files automatically added to .gitignore?" The default is "true" (yes) If you say "yes" to this question, then your .env files will automatically be inserted into the .gitignore. For security purposes, because you may have sensitive data in your .env file, you should not keep it in a repository.

Any data in a .env will be placed in process.env at the browser level.

If you specified a common root object, say MyData, then the data will be placed at process.env.MyData.

If you have this:


Then it will be accessible via process.env.APP_PORT or if you have a common root object of MyData then it will be process.env.MyData.APP_PORT

Note: For security reasons, you cannot console.log(process.env). Quasar does this to enhance your own security.


quasar ext remove @quasar/dotenv


If you appreciate the work that went into this, please consider donating to Quasar or Jeff.


MIT (c) Jeff Galbraith jeff@quasar.dev

Current Tags

  • 1.0.5                                ...           latest (2 months ago)

17 Versions

  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           10 months ago
  • 1.0.0-beta.11                                ...           a year ago
  • 1.0.0-beta.10                                ...           a year ago
  • 1.0.0-beta.9                                ...           a year ago
  • 1.0.0-beta.8                                ...           a year ago
  • 1.0.0-beta.6                                ...           a year ago
  • 1.0.0-beta.5                                ...           a year ago
  • 1.0.0-beta.4                                ...           2 years ago
  • 1.0.0-beta.3                                ...           2 years ago
  • 1.0.0-beta.2                                ...           2 years ago
  • 1.0.0-beta.1                                ...           2 years ago
  • 1.0.0-beta.0                                ...           2 years ago
Today 0
This Week 0
This Month 90
Last Day 0
Last Week 25
Last Month 120
Dependencies (2)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |