1.0.1 • Published 5 months ago

ejs-scaffold v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

ejs-scaffold

Scaffold a directory of files with ejs templating

Install

npm install ejs-scaffold

Usage

Make any number of template files in a directory:

Hello, <%= name %>!

Then run the scaffold to generate the template files with the given variables in the output directory:

import { scaffold } from 'ejs-scaffold'

const inputDirectory = 'path/to/template'
const outputDirectory = 'path/to/output'
const variables = {
  name: 'John Doe',
  age: 30,
}

await scaffold(inputDirectory, outputDirectory, variables)
1.0.1

5 months ago

1.0.0

5 months ago