nextjs-pathnames-codegen
v1.0.4
Published
Generate file of constants with Pathname based on the structure of files in Pages or APP router.
Downloads
5
Readme
Next Pathnames Generate CLI
Generate file of constants with Pathname based on the structure of files in Pages or APP router.
Installation
npm install -g @dmkhanin/next-pathnames-codegen
Usage
To start using Next Pathname Codegen CLI, run:
next-pathnames-codegen - help
Commands
next-pathnames-codegen generate -s ./src/pages -t './shared/constants
: Generate a constant file
For more detailed information on commands, run next-pathnames-codegen --help
.
Contributing
Contributions are welcome ...
License
MIT