
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
lfs-auto-track
Advanced tools
If the files bigger than the size (you can configure, check the usage part), when commit, automatically run git lfs track files.
make sure use husky and lint-staged in the project, and run git lfs install
npm i lfs-auto-track -D
Add lint-staged script in package.json
{
"name": "module-name",
...
"lint-staged": {
"*": [
"lfs-auto-track 'image,video,audio:100;*:1024'"
],
}
...
}
'image,video,audio:100;*:1024'means if mimetype is image/video/audio files's size bigger than 100 KB, and others files bigger than 1024 KB, these files will add to.gitattributeswith run commandgit lfs trackautomatically;
'*:1024'means any files size bigger than 1024 KB when commit, these files will add to.gitattributeswith run commandgit lfs trackautomatically;
The size units support
B/KB/MB/GB, default isKB
'jpg,png,gif:1MB'means files with extensionjpgorpngorgifsize bigger than 1 MB when commit, these files will add to.gitattributeswith run commandgit lfs trackautomatically.
package.json / imgs/) This file should be store in LFSgit lfs push --all origin
GIT_LFS_SKIP_SMUDGE=1 git clone THE_REPO_URL
git lfs pull
v1.1.1 2025-02-25
B/KB/MB/GB.package.json).FAQs
git lfs auto track module
The npm package lfs-auto-track receives a total of 84 weekly downloads. As such, lfs-auto-track popularity was classified as not popular.
We found that lfs-auto-track demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.