https://github.com/linthtml/linthtml-pug
PUG parser compatible with linhtml
https://github.com/linthtml/linthtml-pug
Last synced: 2 months ago
JSON representation
PUG parser compatible with linhtml
- Host: GitHub
- URL: https://github.com/linthtml/linthtml-pug
- Owner: linthtml
- License: isc
- Created: 2021-02-17T15:23:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-23T07:04:39.000Z (over 3 years ago)
- Last Synced: 2025-10-31T00:41:06.845Z (8 months ago)
- Language: JavaScript
- Size: 414 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# @linthtml/linthtml-pug
A [PUG](https://pugjs.org/) parser for [LintHTML](https://github.com/linthtml/linthtml)
## Usage
### Installation
```sh
$ npm install @linthtml/linthtml @linthtml/linthtml-pug --save-dev
# or
$ yarn add @linthtml/linthtml @linthtml/linthtml-pug -D
```
Note: `@linthtml/linthtml-pug` requires `@linthtml/linthtml>=0.7.0`
### Setup
To use `@linthtml/linthtml-pug`, "@linthtml/linthtml-pug" must be specified as the parser in your LintHTML configuration file (see [here](#) for more detailed information).
```js
.linthtmlrc.js
module.exports = {
parser: "@linthtml/linthtml-pug"
};
```