1.7.0 • Published 1 year ago

create-snippet v1.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

npm.io

Installation

To install the create-snippet package, run the command:

npm i -D create-snippet

Basic commands

1) npx create-snippet --help or -h will show hints 2) npx create-snippet --init or -i initializes the project 3) npx create-snippet --generate or -g generates a new snippet 3) npx create-snippet --clear-cache or -cc clear 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

1) camelCase 2) PascalCase 3) lower_snake_case 4) UPPER_SNAKE_CASE 5) lower-kebab-case 6) UPPER-KEBAB-CASE

Specifying parameters via the console

1) snippet - any string 2) name - any string in the format lower-kebab-case 3) path - any string 4) prefix - any string in the format lower-kebab-case 4) suffix - any string in the format lower-kebab-case

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago