{"id":19970236,"url":"https://github.com/webdeveric/esbuild-plugin-environment","last_synced_at":"2026-06-11T10:31:45.239Z","repository":{"id":63558402,"uuid":"568680892","full_name":"webdeveric/esbuild-plugin-environment","owner":"webdeveric","description":"esbuild plugin to define process.env variables","archived":false,"fork":false,"pushed_at":"2026-05-16T16:08:49.000Z","size":603,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-16T18:19:19.556Z","etag":null,"topics":["esbuild-plugin","plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/esbuild-plugin-environment","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/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["webdeveric"],"tidelift":"npm/esbuild-plugin-environment"}},"created_at":"2022-11-21T07:20:48.000Z","updated_at":"2026-05-16T16:08:51.000Z","dependencies_parsed_at":"2024-02-06T16:31:38.548Z","dependency_job_id":"8cb88b27-c65f-4e97-bca1-bef7f8f1efd4","html_url":"https://github.com/webdeveric/esbuild-plugin-environment","commit_stats":{"total_commits":24,"total_committers":1,"mean_commits":24.0,"dds":0.0,"last_synced_commit":"a64091c721dc464fb399d197d4f1cb559a953ae6"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/webdeveric/esbuild-plugin-environment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-environment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-environment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-environment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-environment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/esbuild-plugin-environment/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fesbuild-plugin-environment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34195113,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["esbuild-plugin","plugin"],"created_at":"2024-11-13T02:53:38.263Z","updated_at":"2026-06-11T10:31:45.221Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","funding_links":["https://github.com/sponsors/webdeveric","https://tidelift.com/funding/github/npm/esbuild-plugin-environment"],"categories":[],"sub_categories":[],"readme":"# `esbuild-plugin-environment`\n\n[![Build Status](https://github.com/webdeveric/esbuild-plugin-environment/workflows/Node.js%20CI/badge.svg)](https://github.com/webdeveric/esbuild-plugin-environment/actions)\n\n## Install\n\n```sh\nnpm install esbuild-plugin-environment -D\n```\n\n## Usage\n\nAdd the plugin to your esbuild `plugins`.\n\nExample `esbuild.config.cjs` file:\n\n```js\nconst { environmentPlugin } = require('esbuild-plugin-environment');\n\nmodule.exports = () =\u003e {\n  const config = {\n    bundle: true,\n    sourcemap: true,\n    platform: 'node',\n    target: 'es2022',\n    format: 'esm',\n    outputFileExtension: '.mjs',\n    environment: {},\n    concurrency: 4,\n    watch: {\n      pattern: ['./src/**'],\n      ignore: ['dist', 'node_modules'],\n    },\n    plugins: [\n      // process.env key =\u003e default value\n      environmentPlugin({\n        BUILD_TIMESTAMP: new Date().toISOString(),\n      }),\n      // Array of process.env keys\n      environmentPlugin(['PWD', 'npm_package_version']),\n    ],\n  };\n\n  return config;\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-environment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-environment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fesbuild-plugin-environment/lists"}