Socket
Book a DemoInstallSign in
Socket

html2pug-glob

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2pug-glob

Just like html2pug, but supports file glob.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 09 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts