{"id":47007951,"url":"https://github.com/alepop/stencil-env","last_synced_at":"2026-03-11T20:31:29.036Z","repository":{"id":54942803,"uuid":"162585239","full_name":"alepop/stencil-env","owner":"alepop","description":"🎛️ `.env` plugin for stencil","archived":false,"fork":false,"pushed_at":"2021-01-20T06:23:33.000Z","size":22,"stargazers_count":14,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T21:17:45.409Z","etag":null,"topics":["dotenv","plugin","stencil","stenciljs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@alepop/stencil-env","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/alepop.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}},"created_at":"2018-12-20T13:44:54.000Z","updated_at":"2023-06-24T01:27:18.000Z","dependencies_parsed_at":"2022-08-14T07:10:33.028Z","dependency_job_id":null,"html_url":"https://github.com/alepop/stencil-env","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/alepop/stencil-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alepop%2Fstencil-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alepop%2Fstencil-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alepop%2Fstencil-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alepop%2Fstencil-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alepop","download_url":"https://codeload.github.com/alepop/stencil-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alepop%2Fstencil-env/sbom","scorecard":{"id":179358,"data":{"date":"2025-08-11","repo":{"name":"github.com/alepop/stencil-env","commit":"057a987d938377397368302eba7ca34b518f75a8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":2,"reason":"Found 2/9 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T18:30:28.242Z","repository_id":54942803,"created_at":"2025-08-16T18:30:28.242Z","updated_at":"2025-08-16T18:30:28.242Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30399281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T18:46:22.935Z","status":"ssl_error","status_checked_at":"2026-03-11T18:46:17.045Z","response_time":84,"last_error":"SSL_read: 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","plugin","stencil","stenciljs"],"created_at":"2026-03-11T20:31:28.331Z","updated_at":"2026-03-11T20:31:29.031Z","avatar_url":"https://github.com/alepop.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @alepop/stencil-env\n\nThis package is used to use env variables from `.env` file in your stencil project files.\n\nFirst, npm install within the project:\n\n```\nnpm install @alepop/stencil-env --save-dev\n```\n\nNext, within the project's `stencil.config.js` file, import the plugin and add\nit to the `plugins` config.\n\n#### stencil.config.ts\n```ts\nimport { Config } from '@stencil/core';\nimport { env } from '@alepop/stencil-env';\n\nexport const config: Config = {\n  plugins: [\n      env()\n  ]\n};\n```\nYou can additionally, pass [options](https://github.com/motdotla/dotenv#options) to the `env` plugin.\n\nAdd `.env` file in the root of your project\n\n### .env\n```bash\nTEST=test string\n```\n\nAfter compilation, `process.env.TEST` will be replaced by it variable from `.env` file.\n\n### Gotchas\nYou should to take in mind that `process.env` will not exist as usable object in your project when you use this plugin. It's only replace exact `.env` variable with it's value on a build phase.\n\n## Related\n\n* [Stencil](https://stenciljs.com/)\n* [Stencil Worldwide Slack](https://stencil-worldwide.slack.com)\n* [dotenv](https://github.com/motdotla/dotenv)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falepop%2Fstencil-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falepop%2Fstencil-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falepop%2Fstencil-env/lists"}