
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
render-in-place
Advanced tools
Render an ejs templated file, overwriting it with the result.
This module exposes a function as its default export.
const render = require('render-in-place').default;
render(...)
With allowSyntheticDefaultImports
import render from 'render-inplace';
render(...)
Without allowSyntheticDefaultImports
import { default as render } from 'render-in-place';
render(...)
// or
import * as rip from 'render-in-place';
rip.render(...)
import render from 'render-in-place';
render(
'/path/to/template', // path to template file
{ data: { to: 'render' } }, // data passed to template
{
read: {}, // config passed to ejs reading file
write: {}, // config passed to fs when writing file
},
)
render(path: string, data: object, config: object)pathThe absolute path to your template file.
dataAny data to pass off to the template when rendering. This
value is provided directly to ejs when rendering your file.
configExtra configuration provided to ejs.renderFile or
fs.writeFile.
config.readConfiguration passed to ejs.renderFile.
config.writeConfiguration passed to fs.writeFile.
FAQs
Render an ejs templated file
We found that render-in-place 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.