{"id":15649877,"url":"https://github.com/book/dotenv","last_synced_at":"2026-03-12T12:07:51.038Z","repository":{"id":34305412,"uuid":"176701036","full_name":"book/Dotenv","owner":"book","description":"Dotenv support for Perl","archived":false,"fork":false,"pushed_at":"2022-10-14T15:03:52.000Z","size":19,"stargazers_count":8,"open_issues_count":5,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T17:51:13.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://metacpan.org/pod/Dotenv","language":"Perl","has_issues":true,"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/book.png","metadata":{"files":{"readme":"README","changelog":"Changes","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":"2019-03-20T09:38:32.000Z","updated_at":"2024-04-28T11:33:42.000Z","dependencies_parsed_at":"2022-08-08T00:15:57.330Z","dependency_job_id":null,"html_url":"https://github.com/book/Dotenv","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FDotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FDotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FDotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/book%2FDotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/book","download_url":"https://codeload.github.com/book/Dotenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251742184,"owners_count":21636399,"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":"2024-10-03T12:32:23.471Z","updated_at":"2026-03-12T12:07:50.953Z","avatar_url":"https://github.com/book.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n\n    Dotenv - Support for \"dotenv\" in Perl\n\nSYNOPSIS\n\n        # basic operation\n        use Dotenv;      # exports nothing\n        Dotenv-\u003eload;    # merge the content of .env in %ENV\n\n        # do it all in one line\n        use Dotenv -load;\n\n        # the source for environment variables can be a file, a filehandle,\n        # a hash reference, an array reference and several other things\n        # the sources are loaded in %ENV without modifying existing values\n        Dotenv-\u003eload(@sources);\n\n        # sources can also be loaded via import\n        use Dotenv -load =\u003e 'local.env';\n\n        # add some local stuff to %ENV (from a non-file source)\n        # (.env is the default only if there are no arguments)\n        Dotenv-\u003eload( \\%my_env );\n\n        # return a reference to a hash populated with the key/value pairs\n        # read in the file, but do not set %ENV\n        my $env = Dotenv-\u003eparse('app.env');\n\n        # dynamically add to %ENV\n        local %ENV = %{ Dotenv-\u003eparse( \\%ENV, 'test.env' ) };\n\n        # order of arguments matters, so this might yield different results\n        # (here, values in 'test.env' take precedence over those in %ENV)\n        local %ENV = %{ Dotenv-\u003eparse( 'test.env', \\%ENV ) };\n\nDESCRIPTION\n\n    \"Dotenv\" adds support for .env \u003chttps://12factor.net/config\u003e to Perl.\n\n    Storing configuration in the environment separate from code comes from\n    The Twelve-Factor App methodology. This is done via .env files, which\n    contains environment variable definitions akin to those one would write\n    for a shell script.\n\nTHE \"ENV\" FORMAT\n  Data Format\n    The \"env\" data format is a line-based format consisting of lines of the\n    form:\n\n        KEY=VALUE\n\n    The format is somewhat compatible with shell (so with a minimum of\n    effort, it's possible to read the environment variables use the \".\" or\n    \"source\" shell builtins).\n\nSEE ALSO\n\n    *   The Twelve-Factor app methodology, \u003chttps://12factor.net/\u003e.\n\n    *   Python implentation, \u003chttps://pypi.org/project/python-dotenv/\u003e.\n\n    *   Ruby implementation, \u003chttps://rubygems.org/gems/dotenv/\u003e.\n\n    *   Node implementation, \u003chttps://www.npmjs.com/package/dotenv\u003e.\n\nACKNOWLEDGEMENTS\n\n    The original version of this module was created as part of my work for\n    BOOKING.COM \u003chttp://www.booking.com/\u003e, which authorized its\n    publication/distribution under the same terms as Perl itself.\n\nAUTHOR\n\n    Philippe Bruhat (BooK) \u003cbook@cpan.org\u003e\n\nCOPYRIGHT\n\n    Copyright 2019 Philippe Bruhat (BooK), all rights reserved.\n\nLICENSE\n\n    This program is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbook%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbook%2Fdotenv/lists"}