{"id":23980770,"url":"https://github.com/tailflow/dotenv","last_synced_at":"2025-06-12T05:32:04.556Z","repository":{"id":59065937,"uuid":"535228189","full_name":"tailflow/dotenv","owner":"tailflow","description":"A simple Node.js package for managing .env file entries","archived":false,"fork":false,"pushed_at":"2022-12-01T16:58:28.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-02T13:19:36.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tailflow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-11T07:54:35.000Z","updated_at":"2024-09-16T11:53:30.000Z","dependencies_parsed_at":"2023-01-23T04:46:13.225Z","dependency_job_id":null,"html_url":"https://github.com/tailflow/dotenv","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailflow%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailflow%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailflow%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailflow%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tailflow","download_url":"https://codeload.github.com/tailflow/dotenv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tailflow%2Fdotenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":257664251,"owners_count":22582311,"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","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-01-07T10:18:35.881Z","updated_at":"2025-06-12T05:32:04.537Z","avatar_url":"https://github.com/tailflow.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .env File Entries Manager\n\nThis package allows you to easily manage `.env` file entries in a type-safe manner.\n\n## Installation\n\n```bash\nnpm install @tailflow/dotenv\n\n# or\n\nyarn add @tailflow/dotenv\n```\n\n## Usage\n\n```ts\n\nlet dotEnv = new DotEnv(`EXAMPLE_NUMBER_FIELD=123`);\n\n// retrieving \nconst exampleNumberEntry = dotEnv.get\u003cnumber\u003e('EXAMPLE_NUMBER_FIELD');\n\nconsole.log(exampleNumberEntry.key); // string (\"EXAMPLE_NUMBER_FIELD\")\nconsole.log(exampleNumberEntry.value); // number (123)\nconsole.log(exampleNumberEntry.comment); // undefined\n\n// setting values and comments\ndotEnv.set('EXAMPLE_NUMBER_FIELD', 456);\ndotEnv.setComment('EXAMPLE_NUMBER_FIELD', 'Example comment');\n\ndotEnv.set('NEW_FIELD', 'test');\n\n// formatting entries to string\nconsole.log(dotEnv.toString()); // \"EXAMPLE_NUMBER_FIELD=456 # Example comment\\nNEWFIELD=test\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailflow%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftailflow%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftailflow%2Fdotenv/lists"}