Gathering detailed insights and metrics for gulp-diffable-html
Gathering detailed insights and metrics for gulp-diffable-html
Gathering detailed insights and metrics for gulp-diffable-html
Gathering detailed insights and metrics for gulp-diffable-html
npm install gulp-diffable-html
Typescript
Module System
Min. Node Version
Node Version
NPM Version
@ntnyq/gulp-prettyhtml@3.2.0
Updated on Mar 08, 2025
gulp-format-html@3.2.0
Updated on Mar 08, 2025
gulp-diffable-html@3.2.0
Updated on Mar 08, 2025
gulp-banner-footer@1.2.0
Updated on Mar 08, 2025
@ntnyq/gulp-prettyhtml@3.1.0
Updated on Mar 08, 2025
gulp-banner-footer@1.1.0
Updated on Mar 08, 2025
TypeScript (93.73%)
HTML (5.11%)
JavaScript (1.16%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
199 Commits
2 Branches
1 Contributors
Updated on Jul 11, 2025
Latest Version
3.2.0
Package Id
gulp-diffable-html@3.2.0
Unpacked Size
10.46 kB
Size
3.73 kB
File Count
7
NPM Version
10.9.2
Node Version
22.14.0
Published on
Mar 08, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
:beer: gulp plugin formatting html via diffable-html
1npm install gulp-diffable-html -D
1yarn add gulp-diffable-html -D
1pnpm add gulp-diffable-html -D
1const gulp = require('gulp') 2const diffableHTML = require('gulp-diffable-html') 3// or 4// const { diffableHTML } = require(`gulp-diffable-html`) 5 6function views() { 7 return gulp 8 .src('views/**/*.html') 9 .pipe(diffableHTML()) 10 .pipe(gulp.dest('dist')) 11} 12 13exports.dev = gulp.series(views)
1import gulp from 'gulp' 2import diffableHTML from 'gulp-diffable-html' 3// or 4// import { diffableHTML } from 'gulp-diffable-html' 5 6function views() { 7 return gulp 8 .src('views/**/*.html') 9 .pipe(diffableHTML()) 10 .pipe(gulp.dest('dist')) 11} 12 13export const dev = gulp.series(views)
Input:
1<!DOCTYPE html><!--[if IE 9]>.... some HTML here ....<![endif]--><html lang="en"><head><meta charset="UTF-8"><title>gulp-diffable-html</title></head><body><header><h1><span>I am h1 in header</span></h1></header><main><p><!----><span></span><b>b</b><strong>strong</strong><em>©</em><!-- This comment should be removed --></p></main><footer><p><a href="https://github.com/ntnyq/gulp-diffable-html" target="_blank" rel="noopener" >gulp-diffable-html</a></p></footer></body></html>
Output:
1<!DOCTYPE html> 2<!--[if IE 9]>.... some HTML here ....<![endif]--> 3<html lang="en"> 4 <head> 5 <meta charset="UTF-8" /> 6 <title> 7 gulp-diffable-html 8 </title> 9 </head> 10 <body> 11 <header> 12 <h1> 13 <span> 14 I am h1 in header 15 </span> 16 </h1> 17 </header> 18 <main> 19 <p> 20 <span> </span> 21 <b> 22 b 23 </b> 24 <strong> 25 strong 26 </strong> 27 <em> 28 © 29 </em> 30 </p> 31 </main> 32 <footer> 33 <p> 34 <a 35 href="https://github.com/ntnyq/gulp-diffable-html" 36 target="_blank" 37 rel="noopener" 38 > 39 gulp-diffable-html 40 </a> 41 </p> 42 </footer> 43 </body> 44</html>
gulp-diffable-html is based on diffable-html.
function
(names) => names
Customize the order of attributes on HTML tag.
boolean
false
Display name of file from stream that is being formatting
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
11 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 9
Reason
4 existing vulnerabilities detected
Details
Reason
Found 0/25 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More