uselab
v1.0.5
Published
CLI tool for installing UseKit hooks
Maintainers
Readme
uselab CLI
A command-line tool for installing UseKit hooks into your React projects. Simplify your hook installation process with a simple command.
Installation
npm install -g uselabOr run directly without installation:
npx uselab@latest --helpQuick Start
Initialize your project:
npx uselab@latest initInstall a hook:
npx uselab@latest add use-network-statusView available hooks:
npx uselab@latest list
Commands
add- Install hooks from registry, URL, or local file pathinit- Initialize uselab configuration in your projectview- Preview hook details before installinglist- List all available hooks with filtering and paginationsearch- Search hooks in the registrybuild- Build registry files
Configuration
The CLI creates a uselab.json file in your project root when you run init:
{
"hooks": "src/hooks"
}By default, hooks are installed to:
src/hooks/if asrcdirectory existshooks/in the project root otherwise
Available Hooks
Visit usekit.kiron.dev to browse all available hooks.
Documentation
For detailed documentation, command options, examples, and more, visit:
https://usekit.kiron.dev/docs/cli
License
MIT
