
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
helper-resolve
Advanced tools
Template helper to resolve the path to a file in node_modules. This is mostly useful during development.
Template helper to resolve the path to a file in node_modules. This is mostly useful during development.
Refactored to return an object, so the results of the helper can be passed to other helpers that require more information.
npm i helper-resolve --save
var resolve = require('helper-resolve');
var Handlebars = require('handlebars');
handlebars.registerHelper('resolve', function (name, key) {
return resolve.sync(fp)[typeof key === 'string' ? key : 'main'];
});
handlebars.compile('<script src=\"{{resolve "jquery" "main"}}\"></script>')().
//=> '<script src="node_modules/jquery/dist/jquery.js"></script>'
handlebars.compile('{{resolve "jquery" "homepage"}}')().
//=> 'http://jquery.com'
Register the helper with assemble v0.6.x to use with any template engine:
var assemble = require('assemble');
assemble.helper('resolve', function (name, key) {
return resolve.sync(fp)[typeof key === 'string' ? key : 'main'];
});
async helper
assemble.asyncHelper('resolve', function (name, key, cb) {
if (typeof key === 'function') {
cb = key;
key = 'main';
}
resolve(name, function (err, res) {
cb(null, res[key]);
});
});
Install dev dependencies:
npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb-cli on April 19, 2015.
FAQs
Template helper to resolve the path to a file in node_modules. This is mostly useful during development.
We found that helper-resolve 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
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.