create-snippet
v1.7.0
Published
npx tool for generating code snippets
Maintainers
Readme

Installation
To install the create-snippet package, run the command:
npm i -D create-snippet
Basic commands
npx create-snippet --help or -hwill show hintsnpx create-snippet --init or -iinitializes the projectnpx create-snippet --generate or -ggenerates a new snippetnpx create-snippet --clear-cache or -ccclear cache
New snippet
When creating a new snippet, create a directory inside the directory .create-snippet with an arbitrary name, create the required number of files and directories inside this directory.
SnippetName
The strings snippetName specified inside the file or in the file name
will be converted to a custom string when generating a new snippet.
PrefixName
The strings prefixName specified inside the file when generating a new
snippet will be converted to custom strings.
SuffixName
The strings suffixName specified inside the file when generating a new
snippet will be converted to custom strings.
Supported cases for strings
camelCasePascalCaselower_snake_caseUPPER_SNAKE_CASElower-kebab-caseUPPER-KEBAB-CASE
Specifying parameters via the console
- snippet - any string
- name - any string in the format
lower-kebab-case - path - any string
- prefix - any string in the format
lower-kebab-case - suffix - any string in the format
lower-kebab-case
