JSPM

zustand-cli

1.0.8
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q22544F
    • License ISC

    CLI for generating zustand state management files

    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:

    1. Automatically generate Zustand store templates (supports JavaScript and TypeScript).
    2. Optionally generate Zustand use files (supports JavaScript and TypeScript).
    3. Simplify the creation process of state management files.
    4. Quick start, no additional configuration required.

    Installation:

    To install zustand-cli, run the following command:

    npm i -g zustand-cli

    How to Use:

    1. Run zustand new in the command line.
    2. Choose the type of template you want to generate (JavaScript or TypeScript).
    3. Choose whether to generate a usage file according to the prompts.
    4. 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!