Skip to content

JeffSpies/d2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

d2d - Directory to Directory Templating

Shield showing the latest NPM version Shield showing the latest Docker version Shield showing the repo license

It's basic use is to generate a direcory of files from a source template directory and configuration file, but with a map file it can send templated files anywhere.

Features

  • 🚀 Uses the hyper-fast and robust Eta templating engine
  • 🔨 Has a docker image for repeatable templating in your build processes

Usage

Docker

docker run \
  --user $(UID):$(GID) \
  -v $(PWD)/example/.env:/.env \
  -v $(PWD)/example/templates:/input \
  -v $(PWD)/example/build/templates:/output \
  jeffspies/d2d:latest

CLI

npm install -g d2d
d2d --help
d2d example/templates example/build/templates --env example/.env

Node Library

npm install d2d
# or
yarn add d2d
import * as d2d from 'd2d'
// or
const d2d = require('d2d')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published