Installations
npm install gulp-datasrc-html
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
15.12.0
NPM Version
7.6.3
Score
65.4
Supply Chain
82.5
Quality
73.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Bladhard
Download Statistics
Total Downloads
1,268
Last Day
1
Last Week
9
Last Month
19
Last Year
130
GitHub Statistics
24 Commits
1 Watching
1 Branches
1 Contributors
Bundle Size
76.93 kB
Minified
18.33 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.6
Package Id
gulp-datasrc-html@1.0.6
Unpacked Size
6.38 kB
Size
2.63 kB
File Count
4
NPM Version
7.6.3
Node Version
15.12.0
Total Downloads
Cumulative downloads
Total Downloads
1,268
Last day
0%
1
Compared to previous day
Last week
800%
9
Compared to previous week
Last month
850%
19
Compared to previous month
Last year
-29.7%
130
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
3
gulp-datasrc-html
Replace
src
,srcset
todata-src
,data-srcset
supports LazyLoading
Install
1npm i --save-dev gulp-datasrc-html
Example
1// Input 2<img src="./img/img-1.jpg"> 3<picture> 4 <source srcset="./img/img-1.webp" type="image/webp"> 5 <img src="./img/img-1.jpg"> 6</picture> 7 8// Output 9<img data-src="./img/img-1.jpg"> 10<picture> 11 <source data-srcset="./img/img-1.webp" type="image/webp"> 12 <img data-src="./img/img-1.jpg"> 13</picture>
Usage
1var dataHTML = require('gulp-datasrc-html'); 2 3gulp.task('html',function(){ 4 gulp.src('./assets/**/*.html') 5 .pipe(dataHTML({ ignore: true, tags: 'header' })) 6 .pipe(gulp.dest('./public/')) 7});
Options
ignore
1true - Enables tag-based ignoring 2false - by default
tags
1<header></header> - tag-based ignoring by default
Donate
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Score
3
/10
Last Scanned on 2025-01-27
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