{"id":16257477,"url":"https://github.com/julientant/nuxtjs-dotenv-module","last_synced_at":"2026-05-07T17:39:00.447Z","repository":{"id":102419636,"uuid":"104563802","full_name":"JulienTant/nuxtjs-dotenv-module","owner":"JulienTant","description":"A nuxt.js module that loads your .env file into your context options  | The project has moved to the Nuxt-Community 🚀 ","archived":false,"fork":false,"pushed_at":"2017-09-25T18:16:33.000Z","size":80,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-21T12:36:02.567Z","etag":null,"topics":["dotenv","nuxt","vue"],"latest_commit_sha":null,"homepage":"https://github.com/nuxt-community/dotenv-module","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JulienTant.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-23T11:50:22.000Z","updated_at":"2017-09-25T18:15:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a88fb3c-5bfc-4a96-b5b9-d981e22d5503","html_url":"https://github.com/JulienTant/nuxtjs-dotenv-module","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/JulienTant/nuxtjs-dotenv-module","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienTant%2Fnuxtjs-dotenv-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienTant%2Fnuxtjs-dotenv-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienTant%2Fnuxtjs-dotenv-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienTant%2Fnuxtjs-dotenv-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JulienTant","download_url":"https://codeload.github.com/JulienTant/nuxtjs-dotenv-module/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JulienTant%2Fnuxtjs-dotenv-module/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32749361,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotenv","nuxt","vue"],"created_at":"2024-10-10T15:48:20.957Z","updated_at":"2026-05-07T17:39:00.441Z","avatar_url":"https://github.com/JulienTant.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The project has moved to the Nuxt-Community 🚀 https://github.com/nuxt-community/dotenv-module\n\n# nuxtjs-dotenv-module\n\n[![npm (scoped with tag)](https://img.shields.io/npm/v/nuxtjs-dotenv-module/latest.svg?style=flat-square)](https://npmjs.com/package/nuxtjs-dotenv-module)\n[![npm](https://img.shields.io/npm/dt/nuxtjs-dotenv-module.svg?style=flat-square)](https://npmjs.com/package/nuxtjs-dotenv-module)\n[![CircleCI](https://img.shields.io/circleci/project/github/JulienTant/nuxtjs-dotenv-module.svg?style=flat-square)](https://circleci.com/gh/JulienTant/nuxtjs-dotenv-module)\n[![Codecov](https://img.shields.io/codecov/c/github/JulienTant/nuxtjs-dotenv-module.svg?style=flat-square)](https://codecov.io/gh/JulienTant/nuxtjs-dotenv-module)\n[![Dependencies](https://david-dm.org/JulienTant/nuxtjs-dotenv-module/status.svg?style=flat-square)](https://david-dm.org/JulienTant/nuxtjs-dotenv-module)\n\n\n[![js-standard-style](https://cdn.rawgit.com/standard/standard/master/badge.svg)](http://standardjs.com)\n\n\u003e A nuxt.js module that loads your .env file into your context options\n\n[📖 **Release Notes**](./CHANGELOG.md)\n\n## Features\n\nThe module loads variables from your .env file directly into your nuxt.js application `context` and `process.env`. \n\n## Setup\n- Add `nuxtjs-dotenv-module` dependency using yarn or npm to your project\n- Add `nuxtjs-dotenv-module` to `modules` section of `nuxt.config.js`\n\n```js\n{\n  modules: [\n    // Simple usage\n    'nuxtjs-dotenv-module',\n\n    // With options\n    ['nuxtjs-dotenv-module', { /* module options */ }],\n ]\n}\n```\n\n## Usage\n\nAfter creating your .env file in the project root, simply run your usual `npm run dev`. The variable inside the .env file will be added to the context (`context.env`) and process (`process.env`)\n\nif for some reason you want to restrict what's accessible into the context, you can can pass to the module options an `only` array with the keys you want to allow.\n\n```js\n{\n  modules: [\n    ['nuxtjs-dotenv-module', {only: ['some_key']}],\n  ]\n}\n```\n\n## License\n\n[MIT License](./LICENSE)\n\nCopyright (c) Julien Tant \u003cjulien@craftyx.fr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulientant%2Fnuxtjs-dotenv-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjulientant%2Fnuxtjs-dotenv-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjulientant%2Fnuxtjs-dotenv-module/lists"}