pull-react-hooks

1.0.3 • Public • Published

Pull React Hook

Pull React Hook is a tool to install react hooks from a remote repository. This tool let you pull react hooks from custom-react-hooks repository.

Installation

npm install -g pull-react-hooks

To use prh use alias

# if you are using bash
nano ~/.bashrc
# if you are using zsh
nano ~/.zshrc
# add this line to the end of the file
alias prh="npx pull-react-hooks"

####################

# then restart your terminal
source ~/.zshrc
# or
source ~/.bashrc

If you want to use prh instead of pull-react-hooks with npx , use alias on npm level (npm and others supports this)

npm install -g prh:npm@pull-react-hooks
# then use it as this
npx prh list

Usage

To install a hook.

Important: it will install the hook in the current directory

npx run pull-react-hooks list
# lists all hooks to be installed ( you can select one and install it )

To see all available commands

npx run pull-react-hooks --help

license

MIT

Readme

Keywords

Package Sidebar

Install

npm i pull-react-hooks

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

13.3 kB

Total Files

8

Last publish

Collaborators

  • henoktsegaye