snippets
vscode code snippet generator
INSTALL
npm i file-snippets -g
USAGE
Usage: snipp [options] Options: -V, --version output the version number -i, --input <path> config input path -o, --output <path> config output path -p, --prefix <name> config prefix words, default equal inputpath basename, valid only
EXAMPLE
# help snipp -h# single file snipp -i ./codes/a.js -t 'a demo' -p a -d 'a descrition' -o ./snippets# by a config file snipp -c ./snipp-demo.config.js -o ./snippets# by a dir snipp -i ./codes -o ./snippets# merge exists json file snipp -i ./codes -m javascript -o ./snippetssnipp -i './code/a.json,./codes/b.json' -m javascript -o ./snippets
config file like this
moduleexports = // set title as key 'a demo': // set prefix prefix: 'ad' // set body path body: './codes/a.js' // set description description: 'a demo description' // set type, exp:output in javascript.json type: 'javascript'