Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
A light-weight javascript templating engine for generating html.
<JX @="<block name>" />
.<JX @="./<folder name>/<block name>" />
..npm i --save joinx
const JoinX = require('joinx')
// create JX passing in (options)
const JX = new JoinX({
// views directory
views: path.join(__dirname, './views'),
// blocks directory
blocks: path.join(__dirname, './views/blocks'),
// boilerplate to render on each function call
boilerplate: path.join(__dirname, './views/boilerplate/app.jx'),
// default data
default: {
title: 'Default Title',
description: 'Default Description',
}
})
//// for express.js
// pass in app and 'jx' or custom file extension
// allows for res.render()
JX.use(app, 'jx)
//// JX pattern
// returns a promise
JX.render('fileName', {
'data-key': 'data',
})
// express.js pattern
res.render('fileName', {
'data-key': 'data',
})
<ul>
<!--> block of javascript that will render as html <-->
<!--> must call out$() or some other function to output a string to render <-->
<JX>
pages.forEach(page => {
out$(`<li> ${page} </li>`)
})
</JX>
</ul>
<!--> output the string as html <-->
<p>{{ user.username }}</p>
<!--> include a block <-->
<JX @="<block-name>" />
<!--> include a block inside a custom directory <-->
<!--> must start with a . | ./ will equal the views directory <-->
<JX @="./custom/<block-name>" />
<JX @="head" />
<JX @="navbar" />
<!--> must include (children) block <-->
<!--> this is where the rest of your view will be rendered <-->
<JX @="children" />
<JX @="footer" />
FAQs
A light-weight javascript templating engine for generating html.
The npm package joinx receives a total of 0 weekly downloads. As such, joinx popularity was classified as not popular.
We found that joinx 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.