🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

at-template

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

at-template

JavaScript template engine with @{atSign} syntax

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

at-template

Build Status npm version

JavaScript template engine with @{atSign} syntax.

Usage

  • @{variable} for string replacement
  • @@{variable} for escaping
const AtTemplate = require('at-template')
const template = AtTemplate.compile('Hello, my name is @{name}. I am from @{hometown}.')
const result = template({
  name: 'Fuji',
  hometown: 'Somewhere'
})

console.log(result)
// > Hello, my name is Fuji. I am from Somewhere

That's all.

Keywords

engine

FAQs

Package last updated on 14 Jun 2019

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