html2pug-glob
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

html2pug-glob

Convert HTML to Pug, supports file glob.

Install

$ yarn add html2pug-glob
# Or you can use npm to install it:
$ npm install html2pug-glob

Usage

Just simply type:

# Convert one HTML file
$ html2pug-glob index.html
# Or use glob
$ html2pug-glob **/*.html
# With specified output file name
$ html2pug-glob index.html -o index.pug
# With specified output directory
$ html2pug-glob index.html -o ./out
# Convert multiple files with specified output directory
$ html2pug-glob **/*.html -o ./out

Options

Type html2pug-glob --help to see more options.

$ html2pug-glob --help

html2pug-glob <file..>

Convert HTML file to Pug

Positionals:
  file  Files to convert                                                [string]

Options:
  -o, --output      Output file names, ignored when multiple files is given
                                                                        [string]
  -d, --output-dir  Output directory                                    [string]
  -h, --help        Show help                                          [boolean]
  -v, --version     Show version number                                [boolean]

You can also pass fast-glob options via cli.

For example:

$ html2pug-glob --cwd ./src --dot **/*.html

License

This project is under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i html2pug-glob

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

9.61 kB

Total Files

11

Last publish

Collaborators

  • maiko_tan