{"_id":"@alexma03/utcp-dotenv-loader","_rev":"3-da60a297d11a027462f52660b02dbaff","name":"@alexma03/utcp-dotenv-loader","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.0":{"name":"@alexma03/utcp-dotenv-loader","version":"1.1.0","keywords":["utcp","dotenv","environment","variables","configuration"],"author":{"name":"Alexma03"},"license":"MPL-2.0","_id":"@alexma03/utcp-dotenv-loader@1.1.0","maintainers":[{"name":"alexma03","email":"alex03marcos@gmail.com"}],"homepage":"https://github.com/Alexma03/alexma03-utcp#readme","bugs":{"url":"https://github.com/Alexma03/alexma03-utcp/issues"},"dist":{"shasum":"b443992de442acf1cf84d48fafdba6462b8f57e9","tarball":"https://registry.npmjs.org/@alexma03/utcp-dotenv-loader/-/utcp-dotenv-loader-1.1.0.tgz","fileCount":8,"integrity":"sha512-USGCbRkkMPemxxr2MphZl08qa21zReCOsfTduFH639gzbKpLHzBywI8QyKOLOcFGeh99XOomNfvSmqUoa+0zfA==","signatures":[{"sig":"MEYCIQDDWzBVcF0jFmOLFiPM0iFXjPOpGTjS60g8+3p9H78x8QIhAIsjddzmUjF0dlsmmWqAwGWKsMVeW/EQh8MtaPtXVuM5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20888},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"97f8055784030184a8917378a6de581d7ae7f22d","scripts":{"build":"tsup","prebuild":"rm -rf dist || rmdir /s /q dist || true"},"_npmUser":{"name":"alexma03","email":"alex03marcos@gmail.com"},"repository":{"url":"git+https://github.com/Alexma03/alexma03-utcp.git","type":"git","directory":"packages/dotenv-loader"},"_npmVersion":"11.9.0","description":"DotEnv Variable Loader plugin for UTCP","directories":{},"_nodeVersion":"24.14.0","dependencies":{"zod":"^3.23.8","dotenv":"^17.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"^5.0.0"},"peerDependencies":{"@alexma03/utcp-sdk":"workspace:*"},"_npmOperationalInternal":{"tmp":"tmp/utcp-dotenv-loader_1.1.0_1773650866385_0.07985827560217884","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@alexma03/utcp-dotenv-loader","version":"1.1.1","keywords":["utcp","dotenv","environment","variables","configuration"],"author":{"name":"Alexma03"},"license":"MPL-2.0","_id":"@alexma03/utcp-dotenv-loader@1.1.1","maintainers":[{"name":"alexma03","email":"alex03marcos@gmail.com"}],"homepage":"https://github.com/Alexma03/alexma03-utcp#readme","bugs":{"url":"https://github.com/Alexma03/alexma03-utcp/issues"},"dist":{"shasum":"3fd1f6b53740b8068ab302f1851aff563974148f","tarball":"https://registry.npmjs.org/@alexma03/utcp-dotenv-loader/-/utcp-dotenv-loader-1.1.1.tgz","fileCount":8,"integrity":"sha512-XsbM81X8jwG+4EHe2yeW/kP1nokBqzCLg2vBsdKsYtK3fdx9GFn6nmLR5ylm16wCkFpznozvwjm6ahSjwPRlAA==","signatures":[{"sig":"MEQCIAeiZFZ5IOkfoiLUWZnX78l5ZAo0tPJ1Y1cv1A+B+W4gAiBfppWjk8qFOnr+0P94O1Xw9uX1DqQQuTwe/Kx7XN7BlA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20883},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e836da75819768e8584255bfb61e7bdee947b035","scripts":{"build":"tsup","prebuild":"rm -rf dist || rmdir /s /q dist || true"},"_npmUser":{"name":"alexma03","email":"alex03marcos@gmail.com"},"repository":{"url":"git+https://github.com/Alexma03/alexma03-utcp.git","type":"git","directory":"packages/dotenv-loader"},"_npmVersion":"11.9.0","description":"DotEnv Variable Loader plugin for UTCP","directories":{},"_nodeVersion":"24.14.0","dependencies":{"zod":"^3.23.8","dotenv":"^17.2.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"bun-types":"latest","typescript":"^5.0.0"},"peerDependencies":{"@alexma03/utcp-sdk":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/utcp-dotenv-loader_1.1.1_1773652084428_0.0008241888953985921","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@alexma03/utcp-dotenv-loader","version":"1.1.2","description":"DotEnv Variable Loader plugin for UTCP","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","type":"module","license":"MPL-2.0","author":{"name":"Alexma03"},"repository":{"type":"git","url":"git+https://github.com/Alexma03/alexma03-utcp.git","directory":"packages/dotenv-loader"},"homepage":"https://github.com/Alexma03/alexma03-utcp#readme","bugs":{"url":"https://github.com/Alexma03/alexma03-utcp/issues"},"keywords":["utcp","dotenv","environment","variables","configuration"],"publishConfig":{"access":"public"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs","default":"./dist/index.js"}},"dependencies":{"dotenv":"^17.2.1","zod":"^3.23.8"},"peerDependencies":{"@alexma03/utcp-sdk":"^1.1.1"},"devDependencies":{"@types/node":"20.0.0","typescript":"^5.0.0"},"scripts":{"prebuild":"rm -rf dist || rmdir /s /q dist || true","build":"tsup"},"_id":"@alexma03/utcp-dotenv-loader@1.1.2","_integrity":"sha512-0591KWs68TlLa+SmWMEEFNKVvIE4E0JeiNFDooWRO9FwySXPn/RlCF4Pu0Edu3QNXvyKMIGVtNonIYOIUGPogw==","_resolved":"/private/var/folders/mw/dp007xzd5sz9vkhkjfz0fdh40000gn/T/a72c7f0dcc90210d92371998030845cb/alexma03-utcp-dotenv-loader-1.1.2.tgz","_from":"file:alexma03-utcp-dotenv-loader-1.1.2.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-0591KWs68TlLa+SmWMEEFNKVvIE4E0JeiNFDooWRO9FwySXPn/RlCF4Pu0Edu3QNXvyKMIGVtNonIYOIUGPogw==","shasum":"8f8e8dd2d956f183b86e09541d114b80517320be","tarball":"https://registry.npmjs.org/@alexma03/utcp-dotenv-loader/-/utcp-dotenv-loader-1.1.2.tgz","fileCount":8,"unpackedSize":21069,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDx1IqN80MxO20ED9RT5HmQ4dEpyS8YaoxpBfPN2jLYugIhAOHhUQ7lCoDAtVAnRXkIsRikhY3thmXrzZ+ma9yuSS1d"}]},"_npmUser":{"name":"alexma03","email":"alex03marcos@gmail.com"},"directories":{},"maintainers":[{"name":"alexma03","email":"alex03marcos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/utcp-dotenv-loader_1.1.2_1773735244312_0.20518562592195533"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-16T08:47:46.326Z","modified":"2026-03-17T08:14:04.574Z","1.1.0":"2026-03-16T08:47:46.585Z","1.1.1":"2026-03-16T09:08:04.558Z","1.1.2":"2026-03-17T08:14:04.457Z"},"bugs":{"url":"https://github.com/Alexma03/alexma03-utcp/issues"},"author":{"name":"Alexma03"},"license":"MPL-2.0","homepage":"https://github.com/Alexma03/alexma03-utcp#readme","keywords":["utcp","dotenv","environment","variables","configuration"],"repository":{"type":"git","url":"git+https://github.com/Alexma03/alexma03-utcp.git","directory":"packages/dotenv-loader"},"description":"DotEnv Variable Loader plugin for UTCP","maintainers":[{"name":"alexma03","email":"alex03marcos@gmail.com"}],"readme":"# @alexma03/utcp-dotenv-loader\n\nDotEnv Variable Loader plugin for the Universal Tool Calling Protocol (UTCP).\n\n## Overview\n\nThis plugin provides support for loading environment variables from `.env` files in UTCP applications. It's useful for Node.js environments where you want to manage configuration through environment files.\n\n## Installation\n\n```bash\nnpm install @alexma03/utcp-dotenv-loader\n```\n\n## Usage\n\nThe plugin automatically registers itself when imported:\n\n```typescript\nimport '@alexma03/utcp-dotenv-loader';\nimport { UtcpClient } from '@alexma03/utcp-sdk';\n\n// Now you can use dotenv variable loaders in your UTCP configuration\nconst config = {\n  load_variables_from: [\n    {\n      variable_loader_type: 'dotenv',\n      env_file_path: '.env'\n    }\n  ]\n};\n\nconst client = await UtcpClient.create(process.cwd(), config);\n```\n\n## Configuration\n\nThe DotEnv Variable Loader accepts the following configuration:\n\n- `variable_loader_type`: Must be set to `'dotenv'`\n- `env_file_path`: Path to the `.env` file (relative to the root directory)\n\n## Features\n\n- **Automatic Registration**: Plugin registers itself on import\n- **Dynamic Loading**: Reads .env file on every variable access\n- **Silent Failure**: Returns `null` if file doesn't exist or can't be read\n- **Standard .env Format**: Supports standard dotenv file format\n\n## Example .env File\n\n```env\nAPI_KEY=your-api-key-here\nDATABASE_URL=postgresql://localhost:5432/mydb\nDEBUG=true\n```\n\n## Note\n\nThis plugin requires Node.js as it uses the `fs` module. It's not suitable for browser environments. For browser applications, use inline variable configuration instead.\n\n## License\n\nMPL-2.0\n","readmeFilename":"README.md"}