{"id":29195346,"url":"https://github.com/sullay/vite-plugin-custom-env","last_synced_at":"2025-10-09T04:33:03.767Z","repository":{"id":208742651,"uuid":"722376354","full_name":"sullay/vite-plugin-custom-env","owner":"sullay","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-23T06:55:48.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-07T14:59:36.843Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sullay.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2023-11-23T02:32:14.000Z","updated_at":"2023-11-23T06:53:38.000Z","dependencies_parsed_at":"2023-12-16T12:06:10.598Z","dependency_job_id":"982e19ce-947c-4e69-97f1-e073a8dcdd29","html_url":"https://github.com/sullay/vite-plugin-custom-env","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"a9df56d9a193b1061485bd65dc47b7fca9942d60"},"previous_names":["sullay/vite-plugin-custom-env"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sullay/vite-plugin-custom-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sullay%2Fvite-plugin-custom-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sullay%2Fvite-plugin-custom-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sullay%2Fvite-plugin-custom-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sullay%2Fvite-plugin-custom-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sullay","download_url":"https://codeload.github.com/sullay/vite-plugin-custom-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sullay%2Fvite-plugin-custom-env/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000703,"owners_count":26082921,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-07-02T05:03:13.304Z","updated_at":"2025-10-09T04:33:03.734Z","avatar_url":"https://github.com/sullay.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003evite-plugin-env\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-custom-env\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/vite-plugin-custom-env\" alt=\"Size\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-custom-env\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/vite-plugin-custom-env\" alt=\"Version\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-custom-env\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/languages/top/sullay/vite-plugin-custom-env\" alt=\"Languages\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-custom-env\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/l/vite-plugin-custom-env\" alt=\"License\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/sullay/vite-plugin-custom-env/stargazers\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/stars/sullay/vite-plugin-custom-env\" alt=\"Star\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vite-plugin-custom-env\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/vite-plugin-custom-env\" alt=\"Download\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\n`vite-plugin-env` is a Vite plugin designed to simplify the integration and management of environment variables in your Vite projects. It allows you to define and access environment variables efficiently, supporting both arrays and object maps for flexible configuration.\n\n## Features\n\n- Seamless integration of environment variables into Vite projects.\n- Supports both arrays and object maps for defining environment variables.\n- Easy to configure and use.\n\n## Installation\n\nTo install the plugin, you can use npm or yarn:\n\n```bash\nnpm install vite-plugin-custom-env -D\n# or\nyarn add vite-plugin-custom-env -D\n# or\npnpm add vite-plugin-custom-env -D\n\n```\n\n## Usage\nFirst, import the plugin in your Vite configuration file:\n\n``` js\nimport { VitePluginEnv } from 'vite-plugin-custom-env';\n```\n\nThen, you can use it in your Vite configuration:\n\n``` js\n// vite.config.js\nimport { defineConfig } from 'vite';\nimport { VitePluginEnv } from 'vite-plugin-custom-env';\n\nexport default defineConfig({\n  plugins: [VitePluginEnv(/* options here */)]\n});\n```\n\nOptions\nVitePluginEnv accepts either an array of strings (keys of environment variables), an object map, or undefined. If undefined, all process environment variables will be included.\n\n``` js\nVitePluginEnv(['VITE_API_ENDPOINT', 'VITE_APP_TITLE'])\n```\nUsing Object Map\n\n``` js\nVitePluginEnv({\n  'VITE_API_ENDPOINT': 'https://api.example.com',\n  'VITE_APP_TITLE': 'My Vite App'\n})\n```\n\n## License\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsullay%2Fvite-plugin-custom-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsullay%2Fvite-plugin-custom-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsullay%2Fvite-plugin-custom-env/lists"}