
Research
npm Malware Targets Telegram Bot Developers with Persistent SSH Backdoors
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
angular-templatecache-loader-2
Advanced tools
This repo adds the
Puts HTML files to Angular $templateCache.
You can install loader using npm:
npm i angular-templatecache-loader
main.js
var myTemplate = require('./src/myTemplate.html'); // You will have your template in myTemplate variable
index.html
<div ng-include="'src/myTemplate.html'"></div>
{
test: /\.html$/,
loader: "angular-templatecache-loader?module=app"
}
{
test: /\.html$/,
loader: "angular-templatecache-loader?prefix=/public/src"
}
relativeTo is used to strip a matching prefix from the path of the input html file.
{
test: /\.html$/,
loader: "angular-templatecache-loader?relativeTo=/public/"
}
The above will remove the "/public/" from the generated templateUrl path.
var app = path.join(__dirname, 'app');
module.exports = {
context: app
}
FAQs
Webpack angular templateCache loader
The npm package angular-templatecache-loader-2 receives a total of 38 weekly downloads. As such, angular-templatecache-loader-2 popularity was classified as not popular.
We found that angular-templatecache-loader-2 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
Malicious npm packages posing as Telegram bot libraries install SSH backdoors and exfiltrate data from Linux developer machines.
Security News
pip, PDM, pip-audit, and the packaging library are already adding support for Python’s new lock file format.
Product
Socket's Go support is now generally available, bringing automatic scanning and deep code analysis to all users with Go projects.