Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
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.gitattributes
with run commandgit lfs track
automatically;
'*:1024'
means any files size bigger than 1024 KB when commit, these files will add to.gitattributes
with run commandgit lfs track
automatically;
'jpg,png,gif:1024'
means files with extensionjpg
orpng
orgif
size bigger than 1024 KB when commit, these files will add to.gitattributes
with run commandgit lfs track
automatically.
package.json
/ imgs/
)git lfs push --all origin
GIT_LFS_SKIP_SMUDGE=1 git clone THE_REPO_URL
git lfs pull
FAQs
git lfs auto track module
The npm package lfs-auto-track receives a total of 0 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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.