{"id":18834591,"url":"https://github.com/gkovacs/getsecret","last_synced_at":"2026-01-26T12:30:18.551Z","repository":{"id":28606091,"uuid":"32124520","full_name":"gkovacs/getsecret","owner":"gkovacs","description":"simple api to store secrets in yaml files and environment variables","archived":false,"fork":false,"pushed_at":"2017-01-30T22:12:29.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T22:46:44.443Z","etag":null,"topics":["getsecret","livescript","store-secrets","yaml","yaml-files"],"latest_commit_sha":null,"homepage":null,"language":"LiveScript","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/gkovacs.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":"2015-03-13T03:15:18.000Z","updated_at":"2018-04-18T00:32:38.000Z","dependencies_parsed_at":"2022-08-01T21:29:49.135Z","dependency_job_id":null,"html_url":"https://github.com/gkovacs/getsecret","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkovacs%2Fgetsecret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkovacs%2Fgetsecret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkovacs%2Fgetsecret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gkovacs%2Fgetsecret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gkovacs","download_url":"https://codeload.github.com/gkovacs/getsecret/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239769015,"owners_count":19693782,"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":["getsecret","livescript","store-secrets","yaml","yaml-files"],"created_at":"2024-11-08T02:13:20.610Z","updated_at":"2026-01-26T12:30:18.492Z","avatar_url":"https://github.com/gkovacs.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# getsecret\n\nA simple way to get credentials stored in yaml files and environment variables\n\n## Install\n\n    npm install getsecret\n\n## Storing secrets\n\nYou can store secrets in 3 locations (in decreasing order of priority)\n\n* An environment variable. These are commonly used in Heroku. ex: `process.env.some_keyname`\n\n* A file named `.getsecret.yaml` in your current directory\n\n* A file named `.getsecret.yaml` in your home directory. The format should map key names to secrets, ie:\n\n    some_keyname: some_secret_value\n    another_keyname: another_secret_value\n\n## Accessing secrets from code\n\nSimply pass the key name to getsecret and its value will be returned. ex:\n\n```javascript\nvar getsecret = require('getsecret')\nvar secret_value = getsecret('some_keyname')\n```\n\n## Author\n\n[Geza Kovacs](http://github.com/gkovacs)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkovacs%2Fgetsecret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgkovacs%2Fgetsecret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgkovacs%2Fgetsecret/lists"}