https://github.com/harpertoken/kernel-js
JS CLI for XNU kernel version.
https://github.com/harpertoken/kernel-js
cli javascript kernel macos node
Last synced: 2 months ago
JSON representation
JS CLI for XNU kernel version.
- Host: GitHub
- URL: https://github.com/harpertoken/kernel-js
- Owner: harpertoken
- License: mit
- Created: 2025-09-24T09:19:10.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-10-08T12:47:29.000Z (9 months ago)
- Last Synced: 2025-10-08T14:40:08.895Z (9 months ago)
- Topics: cli, javascript, kernel, macos, node
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# macOS Kernel Tool (JS)
Node.js CLI to get macOS XNU kernel version.
## Usage
```bash
node index.js [path]
```
## Example
```
Kernel version: xnu-11417.101.15
```
## Requirements
Node.js, Git
## Conventional Commits
This project enforces conventional commit standards for commit messages.
### Setup
To enable the commit-msg hook:
```bash
cp scripts/commit-msg .git/hooks/
chmod +x .git/hooks/commit-msg
```
The hook ensures:
- First line starts with a type (feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert) followed by ': '
- First line is lowercase
- First line is ≤60 characters
### History Cleanup
To clean up existing commit messages (lowercase + truncate first line):
```bash
./scripts/rewrite_msg.sh
```
**Warning:** This rewrites git history and force-pushes. Coordinate with your team.
## Docker
```bash
docker build -t macos-kernel-tool .
docker run macos-kernel-tool
```
Note: In container (Linux), kernel version shows "Unknown" as git repo not included.
## License
MIT