New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

render-templates

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-templates

Zero-dependency string template rendering.

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

render-templates

Zero-dependency string template rendering.

Installation

npm install render-templates
# or
yarn add render-templates
# or
pnpm add render-templates

Example

import { render } from 'render-templates';

const template = 'Logged in as {{user.name}} ({{user.email}}).';
const view = {
  user: {
    name: 'John Doe',
    email: 'john.doe@example.com'
  }
};

const result = render(template, view);
console.log(result);
// Logged in as John Doe (john.doe@example.com).

Keywords

render

FAQs

Package last updated on 27 Dec 2023

Did you know?

Socket

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.

Install

Related posts