2.2.6 • Published 2 years ago

strip-credentials v2.2.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Strip-Credentials

Short Description

Remove the credentials from your files before upload your projects to avoid leaking but also keeping including full source.

commands

commanddescription
npx stripcRead the files from "./sc.config". search the credentials after the comentaries and replace them by placeholders
npx stripc --initGenerate a void "./sc.config" file. Only usefull to create the file if you don't remember the file's name
npx stripc recoverRecover the original files from "./withCredentials" folder that mimics original file structure
npx stripc recover deleteAlso removed the "./withCredentials" folder

Download

npm install strip-credentials -g

How to use

1 - Add a commentary just right before the credentials as shown

const myPrivateEmail = /* REPLACE EMAIL BETWEEN ''*/'manolo@example.com',

const database = {
  mySecretPassword: /* REPLACE PASSWORD BETWEEN ""*/"mypass",
}

2 - List your file inside "./sc.config"

connectToDatabase.js
cpp/server.cpp

3 - Run the command

npx stripc

4 - Open the files to make sure the credentials are removed.

5 - Add Commit and Push

6 - 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)

npx stripc r d
2.2.6

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.1.2

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago