
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
load-less-helpers
Advanced tools
register helper functions that can be used with LESS, the same way that handlebars helpers are used in templates.
register helper functions that can be used with LESS, the same way that handlebars helpers are used in templates.
Install with npm:
$ npm install --save load-less-helpers
var less = require('less');
var register = require('load-less-helpers')(less);
Register a single helper
Example assets helper, that might be used for dynamically calculating the path to a project's assets directory, relative to the css file's destination.
register.helper('assets', function (path) {
return 'dist/' + path.value + '/assets/css';
});
Register multiple helpers
register.helpers({
assets: function (path) {
return 'dist/' + path.value + '/assets/css';
},
foo: function () {},
bar: function () {}
});
Example of how to use the assets helper we just created above:
@theme: "blah";
@assets: assets("@{theme}");
.image {
background: url("@{assets}/bar.png");
}
Results in:
.image {
background: url("dist/blah/assets/css/bar.png");
}
The following properties are exposed on the this object:
options: Any options passed to render are exposed on this objectless: the less objectExample
register.helper('assets', function (path) {
return path.join(path.value, this.options.assets);
});
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)
To generate the readme, run the following command:
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Install dev dependencies:
$ npm install && npm test
Jon Schlinkert
Copyright © 2017, Jon Schlinkert. MIT
This file was generated by verb-generate-readme, v0.4.2, on January 29, 2017.
FAQs
register helper functions that can be used with LESS, the same way that handlebars helpers are used in templates.
We found that load-less-helpers 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.