
Security News
Deno 2.4 Brings Back deno bundle, Improves Dependency Management and Observability
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
gulp-head-picker
Advanced tools
gulp plugin to extract heading elements from HTML string.
With npm do:
npm install gulp-head-picker
Input file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>title</title>
</head>
<body>
<h1>Heading1</h1>
<h2>Heading2</h2>
<h3>Heading3</h3>
<h4>Heading4</h4>
<h5>Heading5</h5>
<h6>Heading6</h6>
</body>
</html>
Script:
var hp = require('gulp-head-picker');
gulp.src('./sample.html')
.pipe(hp({
property: 'toc', // property added to file object
}))
.pipe(…)
Result:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>title</title>
</head>
<body>
<h1 id="toc_index_0">Heading1</h1>
<h2 id="toc_index_1">Heading2</h2>
<h3 id="toc_index_2">Heading3</h3>
<h4 id="toc_index_3">Heading4</h4>
<h5 id="toc_index_4">Heading5</h5>
<h6 id="toc_index_5">Heading6</h6>
</body>
</html>
FAQs
gulp plugin to extract heading elements from HTML string.
The npm package gulp-head-picker receives a total of 4 weekly downloads. As such, gulp-head-picker popularity was classified as not popular.
We found that gulp-head-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.