npm.io
0.1.0 • Published 7 years agoCLI

vsc-snippets-html2pug

Licence
MIT
Version
0.1.0
Deps
1
Size
5 kB
Vulns
0
Weekly
0
Stars
2

vsc-snippets-html2pug

A tool to automatically generate VSCode Pug snippets out of HTML ones.

Installation

npm install vsc-snippets-html2pug

Usage

From CLI
vsc-snippets-html2pug options

# example
vsc-snippets-html2pug --src ./html-snippets.json --dist ./pug-snippets.json
From JS file
const generatePugSnippets = require('vsc-snippets-html2pug');
const options = {
  src: './html-snippets.json',
  dist: './pug-snippets.json'
}

generatePugSnippets(options);

Options

  • --src: HTML snippets file path.
  • --dist: Pug snippets file path that will be created