{"id":21831413,"url":"https://github.com/nodef/extra-gcpconfig","last_synced_at":"2025-03-21T13:22:24.165Z","repository":{"id":90491437,"uuid":"165346428","full_name":"nodef/extra-gcpconfig","owner":"nodef","description":"Get ready to use GCP Config from parameters and environment variables.","archived":false,"fork":false,"pushed_at":"2023-05-02T15:21:37.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T09:15:51.043Z","etag":null,"topics":["cli","cloud","command","config","console","environment","extra","gcp","google","parameter","platform","shell","variable"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/extra-gcpconfig","language":"JavaScript","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/nodef.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}},"created_at":"2019-01-12T04:33:18.000Z","updated_at":"2023-02-15T23:33:39.000Z","dependencies_parsed_at":"2023-05-09T13:31:32.086Z","dependency_job_id":null,"html_url":"https://github.com/nodef/extra-gcpconfig","commit_stats":{"total_commits":11,"total_committers":2,"mean_commits":5.5,"dds":0.09090909090909094,"last_synced_commit":"aa02eccad39c4fc691d5f2a22e09a0631a09a382"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-gcpconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-gcpconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-gcpconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodef%2Fextra-gcpconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodef","download_url":"https://codeload.github.com/nodef/extra-gcpconfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244803635,"owners_count":20512952,"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":["cli","cloud","command","config","console","environment","extra","gcp","google","parameter","platform","shell","variable"],"created_at":"2024-11-27T19:10:19.386Z","updated_at":"2025-03-21T13:22:24.139Z","avatar_url":"https://github.com/nodef.png","language":"JavaScript","readme":"Get ready to use [GCP Config] from parameters and environment variables.\n\u003e Do you want to:\n\u003e - Have GCP Config loaded from environment variables?\n\u003e - Get GCP Config from arguments?\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Setup\n\n1. Run `npm install -g extra-gcpconfig` in **console**.\n2. To install this as a package use `npm install extra-gcpconfig`.\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Console\n\n```bash\ngcpconfig\n# get default GCP config\n\ngcpconfig --credentialsFile credentials.json\ngcpconfig --keyFilename credentials.json\n# use a custom credentials file\n## credentials/config file can be JSON\n```\n\n\n### Reference\n\n```bash\ngcpconfig [options]\n# -\u003e GCP config as JSON\n\n# Options:\n# --help: show this help\n# -cf, --credentialsFile: set custom GCP credentails file path\n# -kf, --keyFilename:     set custom GCP credentails file path\n\n# Environment variables:\n$GOOGLE_APPLICATION_CREDENTIALS # set default GCP credentails file path\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Package\n\n```javascript\nconst gcpconfig = require('extra-gcpconfig');\n\ngcpconfig();\n// get default GCP config\n\ngcpconfig({keyFilename: 'credentials.json'});\n// use a custom credentials file\n/// credentials/config file can be JSON\n\nvar A = process.argv, o = {};\nfor(var i=0, I=A.length; i\u003cI;)\n  i = gcpconfig.options(o, A[i], A, i);\ngcpconfig(o);\n// get GCP config from arguments\n```\n\n\n### Reference\n\n```javascript\nconst gcpconfig = require('extra-gcpconfig');\n\ngcpconfig.options(options, argument_key, arguments, index);\n// options: target object to store GCP config options\n// argument_key: name of the argument (ex: \"--help\")\n// arguments: arguments array (ex: process.argv)\n// index: current index in arguments array (ex: i=2...args.length)\n// -\u003e new index in arguments array\n\n\ngcpconfig(options);\n// options: custom GCP config options\n// -\u003e GCP config options\n\n// Default options:\noptions = {\n  keyFilename: null // set custom GCP credentails file path\n};\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n## Similar\n\nDo you need anything similar?\n\u003e - [extra-googletranslate] can translate long text to target language.\n\u003e - [extra-googletts] can generate speech from text.\n\nSuggestions are welcome. Please [create an issue].\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\n[![nodef](https://i.imgur.com/eO4zcjv.jpg)](https://nodef.github.io)\n\u003e References: [GCP Config].\n\n[GCP Config]: https://cloud.google.com/docs/authentication/production\n[extra-googletranslate]: https://www.npmjs.com/package/extra-googletranslate\n[extra-googletts]: https://www.npmjs.com/package/extra-googletts\n[create an issue]: https://github.com/nodef/extra-gcpconfig/issues\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-gcpconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodef%2Fextra-gcpconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodef%2Fextra-gcpconfig/lists"}