package
programmatic plopping for fun and profit
npm install node-plopGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
This is an early publication of the plop core logic being removed from the CLI tool. Main purpose for this is to make it easier for others to automate code generation through processes and tools OTHER than the command line. This also makes it easier to test the code functionality of PLOP without needing to test via the CLI interface.
This is the backend code that drives the plop CLI tool using node-plop.
import nodePlop from "node-plop";
// load an instance of plop from a plopfile
const plop = await nodePlop(`./path/to/plopfile.js`);
// get a generator by name
const basicAdd = plop.getGenerator("basic-add");
// run all the generator actions using the data specified
basicAdd.runActions({ name: "this is a test" }).then(function (results) {
// do something after the actions have run
});Estimated unpacked size across 43 packages.
5.6 MB
Includes dependencies.
crutchcorn
crutchcorn@gmail.com
^1.22.10
1.22.14
^9.3.8
14.3.0
^4.7.8
4.7.10
^0.2.15
0.2.17
^4.3.2
4.3.2
^5.4.4
5.4.4
^5.0.6
6.0.0
^9.0.9
10.0.0
^4.0.2
4.0.3