0.0.1 • Published 7 years ago
dmca-generator v0.0.1
DMCA-Generator
Generate standard DMCA requests based on templates
DMCA生成器
一个用于生成DMCA请求的生成器 中文说明
1.Install and Use
git clone https://github.com/YuYanDev/DMCA-Generator.git
cd DMCA-Generator
npm install
node index.js -t default -o DMCAor
npm install DMCA-Generator -g
DMCA-Generator -t default -o DMCA -p '~/'Arguments:
-tor--templateSet the template. All templates are stored in the 'templates' folder.-oor--outputSet the name of the exported PDF file.-por--outputpathSet the exported directory. (If you are using the second method, I suggest you set it to the root directory'~/')
2.Custom template
The template consists of two parts. It consists of a Markdown file with variables and a JSON file that records variable information (both file name prefixes must be the same, such as aaa.md and aaa.json).
The variables in the Markdown file are in the following format
{{ example }} //Please note the space.The JSON file is in the following format
[
{
"name":"example", //Variable name
"message":"Please input example", //Input tips
"type":"string", //Variable type
"default":"" //Variable default
},
{
"name":"example2",
"message":"Please input example2",
"type":"editor", // If the variable is multiple lines, it is recommended to use the editor to call the system editor.
"default":""
}
]Looking forward to your more rigorous DMCA template, welcome to PR and issue.
This generator is not limited to standard DMCA requests generation and can be used as a simple document generator.
License MIT
0.0.1
7 years ago