{"id":22960238,"url":"https://github.com/stringmanolo/strip-credentials","last_synced_at":"2025-04-02T02:43:19.506Z","repository":{"id":57372799,"uuid":"433193840","full_name":"StringManolo/strip-credentials","owner":"StringManolo","description":"Replace all credentials by placeholders.","archived":false,"fork":false,"pushed_at":"2021-11-30T19:24:46.000Z","size":4563,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T18:04:40.108Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/StringManolo.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":"SECURITY_NOTICE.md","support":null}},"created_at":"2021-11-29T20:53:36.000Z","updated_at":"2021-11-30T19:24:49.000Z","dependencies_parsed_at":"2022-08-29T11:02:10.392Z","dependency_job_id":null,"html_url":"https://github.com/StringManolo/strip-credentials","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/StringManolo%2Fstrip-credentials","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2Fstrip-credentials/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2Fstrip-credentials/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StringManolo%2Fstrip-credentials/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StringManolo","download_url":"https://codeload.github.com/StringManolo/strip-credentials/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246746879,"owners_count":20827061,"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-12-14T18:31:41.625Z","updated_at":"2025-04-02T02:43:19.465Z","avatar_url":"https://github.com/StringManolo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Strip-Credentials\n\n### Short Description\nRemove the credentials from your files before upload your projects to avoid leaking but also keeping including full source.\n\n#### commands\n| command | description |\n| ------- | ----------- |\n| npx stripc  | Read the files from \"./sc.config\". search the credentials after the comentaries and replace them by placeholders |\n| npx stripc --init | Generate a void \"./sc.config\" file. Only usefull to create the file if you don't remember the file's name |\n| npx stripc recover | Recover the original files from \"./withCredentials\" folder that mimics original file structure |\n| npx stripc recover delete | Also removed the \"./withCredentials\" folder\n\n\n### Download\n```\nnpm install strip-credentials -g\n```\n\n### How to use\n1 - Add a commentary just right before the credentials as shown\n```\nconst myPrivateEmail = /* REPLACE EMAIL BETWEEN ''*/'manolo@example.com',\n\nconst database = {\n  mySecretPassword: /* REPLACE PASSWORD BETWEEN \"\"*/\"mypass\",\n}\n```\n\n2 - List your file inside \"./sc.config\"\n```\nconnectToDatabase.js\ncpp/server.cpp\n\n```\n\n3 - Run the command\n```\nnpx stripc\n```\n\n4 - Open the files to make sure the credentials are removed.\n\n5 - Add Commit and Push\n\n6 - Recover the files to keep developing and remove withCredentials folder (you can omite delete function if you don't care about the folder being there)\n```\nnpx stripc r d\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringmanolo%2Fstrip-credentials","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstringmanolo%2Fstrip-credentials","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstringmanolo%2Fstrip-credentials/lists"}