
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
Simple html templates with es6 quasi literals. You can also minify the templates using babel-plugin-as-html.
Inspired by http://www.2ality.com/2015/01/template-strings-html.html.
$ npm install as-html
// commonjs
var html = require('as-html')
// es6
import html from 'as-html'
// examples
let planet = 'world'
html`
<div>Hello ${planet}</div>
` //-> '<div>Hello world</div>'
// safe by default
planet = 'crazy<planet>'
html`
<div>Hello ${planet}</div>
` //-> '<div>Hello crazy<planet></div>'
// or insert html by prefixing with a bang!
html`
<div>Hello !${planet}</div>
` //-> '<div>Hello crazy<planet></div>'
// arrays are supported as well (automatically unescaped)!
let planets = ['a', 'b', 'c']
html`
<div>
${planets.map(planet => html`
<b>${planet}</b>
`)}
</div>
` //-> '<div><b>a</b><b>b</b><b>c</b></div>'
npm test to run tests.Please feel free to create a PR!
FAQs
HTML templating with es6 quasi literals.
The npm package as-html receives a total of 15 weekly downloads. As such, as-html popularity was classified as not popular.
We found that as-html 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.