![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Elvis is a JavaScript library for creating and building DOM elements programmatically. It does this using native, cross-browser APIs (createElement
et al). Elvis works like a template library, except without having to compile templates from strings. DOM generating code must also be valid JavaScript, and it really shines when used with a transpiled language like CoffeeScript. It is inspired by template languages like Jade and HAML.
var el = elvis;
el(document.body, [
el('nav', el('ul', [
el('li', el('a(href="/")', 'Home')),
el('li', el('a(href="/news")', 'News')),
...
])),
el('#contents', [
el('span.my-class', 'Hello, World!')
])
]);
number
and boolean
types equal to string
style
attributes directly and with bindings.bindTo
to Backbone Views.get
and .set
for the transform
registration methodsvalue
attributeel.on
Release notes
package.json
and bower.json
version numbers (also in elvis/ + elvis-backbone/)npm run-script build
to update all distribution sourcesgit tag -a <tag>
with the appropriate version numbernpm publish
in both elvis/ + elvis-backbone/FAQs
Generate DOM without templates
The npm package elvis receives a total of 1 weekly downloads. As such, elvis popularity was classified as not popular.
We found that elvis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.