Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html2pug

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2pug - npm Package Compare versions

Comparing version 0.0.1 to 1.0.0

.editorconfig

18

CHANGELOG.md

@@ -1,2 +0,16 @@

# 0.0.1
Adds a CHANGELOG
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [1.0.0] - 2017-07-09
### Changed
- Use parse5 instead of jsdom
### Fixed
- Text node bug due to inconsistent whitespace
-   conversion error
- Cyrillic characters encoding
- Indentation for multi-line comments
- Canvas tag issue

37

package.json
{
"name": "html2pug",
"version": "0.0.1",
"version": "1.0.0",
"description": "Converts HTML to Pug",
"main": "lib/index.js",
"main": "src/index.js",
"bin": {
"html2pug": "lib/cli.js"
"html2pug": "src/cli.js"
},
"dependencies": {
"html-minifier": "^1.1.1",
"jsdom": "^8.0.2",
"minimist": "^1.2.0"
"arrify": "^1.0.1",
"html-minifier": "^3.5.2",
"minimist": "^1.2.0",
"parse5": "^2.1.5"
},
"devDependencies": {},
"devDependencies": {
"eslint": "^4.1.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.6.1",
"eslint-plugin-node": "^5.1.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"husky": "^0.14.2",
"lint-staged": "^4.0.0",
"prettier-standard": "^6.0.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"standard": "prettier-standard 'src/**/*.js'",
"lint": "eslint src",
"precommit": "lint-staged",
"prepush": "npm run lint"
},
"lint-staged": {
"*.js": [
"prettier-standard",
"git add"
]
},
"repository": {

@@ -19,0 +40,0 @@ "type": "git",

# html2pug
HTML to Pug converter.
Converts HTML to Pug (formerly Jade)
Node.js 5.0+ minimum. Uses depth-first search for DOM tree traversal, and ES6 generators.
## Install
## Early stages. Very experimental.
Get it on npm:
```bash
npm i -g html2pug
```
node lib/cli.js -f /path/to/file.html
## Usage
```bash
html2pug -f /path/to/file.html
```

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc