crud-scaffolder
A very minute library to create a basic scaffold for a given Crud Folder
Installation
npm install crud-scaffolder -g
Usage
$ scaffold user
The above command would create a folder structure in the current folder like mentioned below:
- user
- create.js
- get.js
- list.js
- update.js
- remove.js
- user.js
The content of user.js file will be:
moduleexports = create: get: list: update: remove:
The content in the rest of the files will be:
module { }
If you input something like 'user-account', then the user.js file would be renamed to userAccount.js i.e, it camelizes the given input for the main file.