New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mcr-cli-app

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mcr-cli-app

A simple app that when run inside a folder creates an MCR structure and installs development dependencies.

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

MCR Cli app

A simple Node.js CLI Application for initialising a new NPM project.

Description

The purpose of developing this application is to ease up my process of starting a new NPM project and creating a skeleton of MCR (Model, Controllers and Routes) Structure in which I organise my code.

Installation

You can install this npm package by running

npm i -g mcr-cli-app

Note: You must install this module globally. I have not tested this as being installed as a project dependency and I am not responsible if you mess up your project or your system catches on fire or worse.

Usage

You can use this package in any directory. Just run the following command

mcr-init

and it will create a following structure for you

+-- package.json
+-- package-lock.json
+-- node_modules
|   +-- module1 ...
|   +-- module2 ...
+-- src
|   +-- index.js
|   +-- models
|   |   +-- index.js
|   +-- controllers
|   |   +-- index.js
|   +-- routes
|   |   +-- index.js

The mcr-init command internally runs npm init -y on your behalf and skips the initial steps of setting up a node.js app which you might usually see on running the npm init command.

YOU MUST ENTER STUFF IN PACKAGE.JSON YOURSELVES

Dependencies

I personally use 2 development dependencies a lot:

  • editorconfig
  • eslint

These will be installed when you run mcr-init command. If you do not wish to use these dependencies, you can uninstall them later.

FAQs

Package last updated on 25 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts