0.1.5 • Published 10 years ago

replace-temp-values v0.1.5

Weekly downloads
5
License
ISC
Repository
github
Last release
10 years ago

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
0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago