0.1.0 • Published 5 years ago

vsc-snippets-html2pug v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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