{"id":31023256,"url":"https://github.com/ju1ius/pointenv","last_synced_at":"2026-05-07T10:31:40.337Z","repository":{"id":80722081,"uuid":"605006311","full_name":"ju1ius/pointenv","owner":"ju1ius","description":"Polyglot dotenv parser and evaluator for NodeJS","archived":false,"fork":false,"pushed_at":"2024-03-16T17:49:47.000Z","size":349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T07:32:01.845Z","etag":null,"topics":["dotenv","dotenv-parser","nodejs","posix","shell"],"latest_commit_sha":null,"homepage":"","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/ju1ius.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-02-22T08:42:47.000Z","updated_at":"2023-02-22T08:45:47.000Z","dependencies_parsed_at":"2024-03-16T18:02:52.809Z","dependency_job_id":"1439d83a-e88d-4bf6-ab7c-7fad16a801c7","html_url":"https://github.com/ju1ius/pointenv","commit_stats":{"total_commits":45,"total_committers":1,"mean_commits":45.0,"dds":0.0,"last_synced_commit":"95d3f65130f0e948aa28b115d76ff094ea6ea607"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/ju1ius/pointenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ju1ius%2Fpointenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ju1ius%2Fpointenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ju1ius%2Fpointenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ju1ius%2Fpointenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ju1ius","download_url":"https://codeload.github.com/ju1ius/pointenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ju1ius%2Fpointenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32733396,"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","dotenv-parser","nodejs","posix","shell"],"created_at":"2025-09-13T13:52:04.610Z","updated_at":"2026-05-07T10:31:40.331Z","avatar_url":"https://github.com/ju1ius.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ju1ius/pointenv\n\n[![codecov](https://img.shields.io/codecov/c/gh/ju1ius/pointenv?token=f5TpbMGLy7\u0026style=for-the-badge)](https://app.codecov.io/gh/ju1ius/pointenv)\n[![npm](https://img.shields.io/npm/v/%40ju1ius%2Fpointenv?style=for-the-badge)](https://www.npmjs.com/package/@ju1ius/pointenv)\n[![deno.land](https://img.shields.io/github/v/tag/ju1ius/pointenv?sort=semver\u0026style=for-the-badge\u0026label=deno.land)](https://deno.land/x/pointenv)\n\nPolyglot dotenv parser and evaluator.\n\n## Installation\n\n```sh\nnpm install @ju1ius/pointenv\n```\n\n## Supported dialects\n\n* [posix](https://github.com/php-xdg/dotenv-spec)\n* [docker-compose](https://docs.docker.com/compose/environment-variables/env-file/)\n* [symfony/dotenv](https://github.com/symfony/dotenv)\n\nThe formal `dotenv` syntax for this project is `posix` only.\n\nThe `posix` dialect is a subset of the POSIX shell syntax\nand is compatible with shell scripts.\n\nSupport for other `dotenv` syntax dialects is included for interoperability purposes.\nCompatibility will be improved gradually, but 100% compatibility is not always possible,\nnor desirable (for example symfony supports shell command evaluation, which we don't for obvious reasons).\n\n\n## Usage\n\nThe default entrypoint for this module parses and evaluates\nthe given files in order, then injects the resulting variables\ninto the global environment object (`process.env` or `Deno.env`).\n\nIt returns a `Map\u003cstring, string\u003e` object containing the variables\nthat have been injected into the environment.\n\n```ts\nimport pointenv from '@ju1ius/pointenv'\n\nconst applied = await pointenv(['.env', '.env.local'])\nconsole.log(applied)\n```\n\nVariables that are already present in the environment have precedence\nover those specified in the dotenv files, unless the `override` option is `true`:\n\n```ts\nawait pointenv(['.env'], {override: true})\n```\n\nIf an `env` option is provided,\nthe variable resolution will use that instead of the global envionment.\n\nThis can be used i.e. for providing defaults for when a variable is not set in the environment.\n\n```sh\n# .env\nBAR=\"${FOO:-not found}\"\n```\n\n```ts\nconst env = await pointenv(['.env'], {\n  env: {\n    FOO: 'bar',\n    ...process.env,\n  }\n})\nconsole.log(env.get('BAR')) // 'bar'\n```\n\nIf you just want to parse and evaluate the files\nwithout injecting anything into the environment,\nuse the `load` function:\n\n```ts\nimport {load} from '@ju1ius/pointenv'\n\nconst env = await load(['.env'])\n// env is a Map\u003cstring, string\u003e containing all the variables\n// found in the provided files\nconsole.log(env)\n```\n\n### Using alternative dialects\n\nThe `dialect` option can be set to one of the supported alternative dialects:\n\n```ts\nimport pointenv, {load, Dialect} from '@ju1ius/pointenv'\n// use the docker-compose dialect\nawait pointenv(['.env'], {dialect: Dialect.Compose})\n// use the symfony dialect\nawait load(['.env'], {dialect: Dialect.Symfony})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fju1ius%2Fpointenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fju1ius%2Fpointenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fju1ius%2Fpointenv/lists"}