replace-temp-values

0.1.5 • Public • Published

Replace Template Values

A tiny module for replacing template values in a file.

Values to be replaced should be book ended with %%.

Installation

npm install replace-temp-values --save

Usage

myFile.txt

%Heading%

Welcome to this months newsletter
...

%Footer%

app.js

var replace = require('replace-temp-values');

var values = {'Heading': 'Good Morning San Diego!', 'Footer': 'Yaz Flute'};

replace('myFile.txt', 'newFile.txt', values);
  • 0.1.5

Package Sidebar

Install

npm i replace-temp-values

Weekly Downloads

0

Version

0.1.5

License

ISC

Last publish

Collaborators

  • dannybluedesign