Package Exports
- zustand-cli
- zustand-cli/bin/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zustand-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Introduction:
zustand-cli is a command-line tool for quickly generating Zustand state management templates. It helps you to easily create Zustand store and use files based on JavaScript or TypeScript. By using zustand-cli, you can save time and maintain the consistency of your project structure.
Key Features:
- Automatically generate Zustand store templates (supports JavaScript and TypeScript).
- Optionally generate Zustand use files (supports JavaScript and TypeScript).
- Simplify the creation process of state management files.
- Quick start, no additional configuration required.
Installation:
To install zustand-cli, run the following command:
npm i -g zustand-cli
How to Use:
- Run
zustand new
in the command line. - Choose the type of template you want to generate (JavaScript or TypeScript).
- Choose whether to generate a usage file according to the prompts.
- The automatically generated files will be created in the current directory.
NOLANKYWU-MB1:sh nolan$ zustand new
? Which template do you want to generate? TypeScript
? Do you want to generate a usage file? Yes
Created zustandTemplateTS.ts
Created zustandUseTemplateTS.tsx
Now, you can start using the automatically generated Zustand store and use files to simplify your state management workflow. Try zustand-cli to make your development process more relaxed and enjoyable!