
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
dont-care-log
Advanced tools
Teach git stage/diff how to ignore specific logging code,
so your logging code will never be commit automatically,
of course also wont show dirty in git
.
Assuming that a new file in you project like:
import path from 'path'
const getFile = () => {
const name = 'foo'
const file = path.join(__dirname, name)
console.log('TCL: getFile() -> name:', file)
return file
}
and with installed dont-care-log, you will only see this output below on git status/add/diff
commands
+ import path from 'path'
+
+ const getFile = () => {
+ const name = 'foo'
+ const file = path.join(__dirname, name)
+ return file
+ }
Amazing, there is no line of console.log('TCL: ...)
npm i -D dont-care-log
and Turbo Console Log for VSCode
dont-care-log only teach git to ignore the specific format line which is prefixed with any spaces and console.log('TCL:
(default format of Turbo Console Log).
Well, here defined a filter.clean
pipe to drop the specific line (generated by Turbo-Console-Log),
and some preinstall
hook to setup .gitconfig
and .gitattributes
.
More details of git add/staging
workflow see: > git-scm staging
In simple terms, filter.clean
for staging, filter.smudge
for checkout
FAQs
teach git stage/diff how to ignore specific logging code
The npm package dont-care-log receives a total of 1 weekly downloads. As such, dont-care-log popularity was classified as not popular.
We found that dont-care-log demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.