fabricators
v1.0.334
Published
Create And Modify Files From Templates Or Grids
Downloads
118
Maintainers
Readme
fabricators
THIS PROJECT IS STILL IN THE DESIGN PHASE
IDEAS & CONTRIBUTIONS ARE WELCOME
An Open Source Universe Project
Contents
Features ✨
- Custom Template Syntax
Planned
- Generate Form from Template File
Planned
- Fill Template Form using data in a BigParser Grid
Planned
- Fill Multiple Templates at once using a
fabricators
BigParser GridPlanned
Install 🛠
npm install fabricators
Usage 🔭
Read more about the Design behind fabricators
here.
{name}.txt
// FABRIC: { name: 'string', birthday: 'date' }
Hello <%= name%>!<%
if (
birthday.getDay() === new Date().getDay()
&& birthday.getMonth() === new Date().getMonth()
) {
print('Happy Birthday!')
}
%>
$ fabricators --template template.txt
name: Anubis
birthday: 07/30/2001
$ cat anubis.txt
Hello Anubis! Happy Birthday!
$ fabricators --template template.txt --gridId yourGridIdWithNameAndBirthdayColumns
$ ls -1
anubis.txt
dan.txt
dom.txt
sarah.txt
ed.txt
...
Documentation 🛰
fabricators
is under active development, documentation will be added once an initial release is ready.
Contributing 🌎
We would love for you to contribute your ideas, code, & fixes to fabricators
.
We encourage everyone to read our Design Document to learn more about the thought process behind fabricators.
Also check out the rewards offered for contributing to the Open Source Universe.
License ⚖️
MIT