
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
frontend-tpl
Advanced tools
This is a simple fontend template engine
English || 中文
<script src="dist/tpl.js"></script>
<!--
If it work in prodution, you may use the following instead:
<script src="dist/tpl.bundle.js"></script>
-->
<script>
var tpl = new Tpl()
var data = {
divClass: 'div',
out: 'outer'
}
var htmlString = ' \
<div class="{{ divClass }}"> \
<p>{{ "inner" }}</p> \
</div> \
<p>{{ out + "p" }}</p> \
'
var dom = tpl.parse(htmlString).render({ data: data }).getDom()
/**
* dom is:
* [
* <div class="div">
* <p>inner</p>
* </div>,
* <p>outerp</p>
* ]
*/
</script>
var Tpl = require('frontend-tpl')
var tpl = new Tpl()
// some code as above
Attention
If you want to use it in node environment, you should offer a environment of DOM.
For example, you can use the jsdom module.
You can download this depository and run npm test to see the unit test.
If you want to get more information, please see API Document
FAQs
This is a simple fontend template engine
We found that frontend-tpl 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 Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.