Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Ignore-check – A CLI tools to ensure patterns are present in .gitignore (github.com/smashah)
1 point by smashah on May 6, 2021 | hide | past | favorite | 1 comment


Hello HN,

I maintain a library that generates a sensitive files and unfortunately people were committing these sensitive files to public github repos.

To solve this problem, I built ignore-check which I can add as an install script to my library to make sure the sensitive file pattern is present in the .gitignore file, if it isn't there then this CLI will add it.

The positive benefit of shipping this as a npx cli command is that I don't need to add another dependency/dev dependency to my package.json

Big shoutout to this project which was the inspiration for ignore-check: https://github.com/seek-oss/ensure-gitignore




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: