π Anzu
Anzu is very light CLI tool for checking whether files have license header
Installation
- Without explicit permissions:
deno install https://deno.land/anzu@1.0.0/src/cli.ts -n anzu
- With explicit permissions:
deno install --allow-read --allow-write --allow-net https://deno.land/anzu@1.0.0/src/cli.ts -n anzu
deno_license_checker
π Why notI got discouraged from deno_license_checker because of several things, majorly:
- Its size β 177KB
- Performance
- Requirement of config file
- Doesnβt ask for permissions β they have to be specified otherwise itβll exit
Anzu solves some of these problems:
- Itβs significantly smaller β 27KB
- In my case its multiple times faster (benchmarks needed)
- Every option has to be set in CLI
- If you want to launch same command using one command β just create bash script that does that (see here)
- If permissions arenβt specified it automatically requests you for them
Why not Anzu?
- Itβs not compatible with windows (Im 99.9% sure, but didnβt tested it)
- If you prefer having external config file Anzu probably isnβt for you
What can Anzu also do?
- Additionally it can load license template from given URL and Path
- It can search for license using RegExp
- Exclude files and directories using regexp
- You can see full functionality using
-h
option.
π€ Contributing
Iβm open to any idea and criticism. Feel free to add any commits, issues and pull requests!
π Licensing
This project is available under MIT License conditions.