Lockfix
Tool for smart revert of integrity changes for npm lock file
Install / Use
/learn @kopach/LockfixREADME
⭐️ Please, star me on GitHub — it helps!
lockfix – is a git based CLI tool, which helps to revert sha1 integrity changes of npm lock file
Before

After

🧬 Table of Contents
❓ Why? 🔝
NPM has known issue of constantly changing integrity property of its lock file. Integrity may change due to plenty of reasons. Some of them are:
npm installdone on machine with different OS from one where lock file generated- some package version updated
- another version of
npmused
Intention of this tool is to prevent such changes and make integrity property secure and reliable.
✨ Features 🔝
- Reverts changes from
sha512tosha1. Keeps untouched changes fromsha1tosha512.sha512algorithm is more secure. - Works well with both
package-lock.jsonandnpm-shrinkwrap.json - Possibility to revert any changes done by this tool
💾 Install 🔝
Install per project with NPM
npm install --save-dev lockfix
or to install globally
npm install -g lockfix
🔨 Usage 🔝
Add to package.json
"scripts": {
"postshrinkwrap": "lockfix",
},
Manually from terminal
lockfix
or (without install)
npx lockfix
Options
Usage: lockfix [options]
Options:
-V, --version output the version number
-c, --commit make backup commit with revert instruction before applying changes
-f, --force bypass Git root directory check
-q, --quiet suppress output
-h, --help display help for command
📄 License 🔝
This software licensed under the MIT
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。

