npm package to create directories and files with basic node templates using UNIX like commands touch and mkdir.
I work with NodeJS for server side applications and manually create modules and JS files, although simple and small I got tired of repeating the same small task so I wrote this to automatically generate common files. This also helps to keep things consistent.
Why "edcli"? Because, "ed-cli" and "nodge-gen" were already taken.
From NPM
npm install -g @ebarahona/edcli
Download or clone repo then:
$ cd edcli
$ npm install -g
Use the package from the directory where you would like to generate module folders or files
Create a file:
cd my-app
edcli touch <file-name> or <file-name.js>
Create a module (creates directory and index.js in given directory):
edcli mkdir <module-name>
Will convert camelcase names to dash (hyphen) separated names
/* jshint node: true, devel: true */
'use strict';
/**
* Required Dependencies
* go here
*/
const helloWorld = () => {
console.log('Hello World');
};
const API = {
helloWorld
};
module.exports = API;
Clean up
Add template options ie; --html, --js etc..
Add more commands
Add tests
Much more!