go-text-template
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

go-text-template

Node.js CI npm

Basic Go text/template parser and renderer. No dependencies.

Install

Install the package from the NPM registry:

npm install go-text-template

Usage

import { Template } from 'go-text-template'; // or require
const template = new Template("optional name");
const output = template.execute('Hello {{.name}}', { name: 'World' });
console.log(output); // Hello World

Readme

Keywords

none

Package Sidebar

Install

npm i go-text-template

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

17.9 kB

Total Files

5

Last publish

Collaborators

  • defang-eric
  • lionello