Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Templating with some fresh air
Edge is a logical templating engine for Node.js. The syntax language is naturally similar to Javascript, making it simpler to write and remember.
The official documentation will soon be published on http://edge.adonisjs.com
const edge = require('edge.js')
// configure cache
edge.configure({
cache: process.env.NODE_EV === 'production'
})
// register views
edge.registerViews(path.join(__dirname, 'views'))
// render view
edge.render('welcome')
# just the tests
npm run test:local
# tests + report coverage on coveralls
npm run test
# run tests on windows
npm run test:win
# tests with local coverage report
npm run coverage
Make sure to install nunjucks
before running benchmarks in comparison to nunjucks.
node benchmarks/loop.js
node benchmarks/conditionals.js
FAQs
Template engine
The npm package edge.js receives a total of 21,402 weekly downloads. As such, edge.js popularity was classified as popular.
We found that edge.js demonstrated a healthy version release cadence and project activity because the last version was released less than 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
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.