
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
handlebars-helper-autolink
Advanced tools
{{autolink}} handlebars helper. Generate relative links from the "current page" to other dest pages.

Generate relative links from the "current page" to other dest pages.
Use npm to install the package: npm i handlebars-helper-autolink.
In your project's Gruntfile, to register the helper add handlebars-helper-autolink to the helpers property in the Assemble task or target options:
grunt.initConfig({
assemble: {
options: {
// the 'handlebars-helper-autolink' npm module must also be listed in
// devDependencies for assemble to automatically resolve the helper
helpers: ['handlebars-helper-autolink', 'foo/*.js']
},
files: {
'dist/': ['src/templates/*.hbs']
}
}
});
Alternatively, you can avoid defining the helper in the Assemble task options by adding module to both the devDependencies and keywords in your project's package.json.
{
"name": "foo",
"version": "0.1.0",
"devDependencies": {
"handlebars-helper-autolink": "*"
},
"keywords": [
"handlebars-helper-autolink"
]
}
With the helper registered, you may now begin using it in your templates.
In a "page"
{{#each pages}}
<a href="{{autolink}}">{{data.title}}</a>
{{/each}}
In a "layout"
{{#each pages}}
<a href="{{autolink}}">{{../title}}</a>
{{/each}}
Jon Schlinkert
Licensed under the MIT License Copyright (c) Jon Schlinkert, contributors.
FAQs
{{autolink}} handlebars helper. Generate relative links from the "current page" to other dest pages.
The npm package handlebars-helper-autolink receives a total of 9 weekly downloads. As such, handlebars-helper-autolink popularity was classified as not popular.
We found that handlebars-helper-autolink 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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.