This package contains the logic to initiate new loader projects.
npm i -D webpack-cli @webpack-cli/generate-loader
To run the package programmatically, install it as a dependency. When using the package programmatically, one does not have to install webpack-cli.
const generateLoader = require('@webpack-cli/generate-loader').default;
generateLoader();
npx webpack-cli generate-loader