npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

express-commander

v1.0.5

Published

Express Commander is making developers life more easier. When anyone making express application, then they are facing repititive work which is breaking our workflow sometimes. To resolving the issue we introduced express-commander as your friend.

Downloads

4

Readme

express-commander [NPM]

Express commander will help you to creating Model, Controller, Route, Or Services for your Node-JS (Express) application. You can make your workflow easier with this tool. You can use JavaScript or TypeScript Backend API application with this one.

Installation

To installing this, you have to pre-installed Node-JS on your system. Then you can create your Express Application with npm init or yarn init.

Install on your project with NPM,

npm install express-commander

Or, install with YARN,

yarn add express-commander

After Installation done you can see there will be a directory on node_modules folder is 'express-commander', Now you can easily use the product.

Start Development with express-commander

Model Or Schema creation,

It will help you to creating model or schema for your application. By default this will be in JavaScript and at root of your application you can see the created model.

npx express-commander make:model <name_of_your_model>

Service creation,

It will help you to creating service for your application. By default this will be in JavaScript and at root of your application you can see the created service.

npx express-commander make:service <name_of_your_service>

Controller creation,

It will help you to creating controller for your application. By default this will be in JavaScript and at root of your application you can see the created controller.

npx express-commander make:controller <name_of_your_controller>

Route creation,

It will help you to creating route for your application. By default this will be in JavaScript and at root of your application you can see the created route.

npx express-commander make:route <name_of_your_route>

Creation of all parts for resources (Service, Controller, Route),

It will help you to creating Service, Controller, Route for your application. By default this will be in JavaScript and at root of your application you can see the created Service, Controller, Route.

npx express-commander make:all <name_of_your_resource>

Creation of all parts for resources with schema (Model, Service, Controller, Route),

It will help you to creating Model, Service, Controller, Route for your application. By default this will be in JavaScript and at root of your application you can see the created Model, Service, Controller, Route.

npx express-commander make:all:schema <name_of_your_resource>

Changing the configurations as you like

By default it is creating directories at root level of your application. If you have src directory on your project then you can configure the setting to express-commander to behave like that. Also if you are developing your application with TypeScript instead of JavaScript then you are also welcome, we have TypeScript supports for you and you can specifying which language you want to use by changing the configuration.

Using different directory on your project with different language,

Run this to make configuration with your directory or you want to use TypeScript instead of JavaScript, you can specify which is your prepared things for your project,

npx express-commander config

Choosing src or not for perfect project structure,

This is an alt text.

Choosing Language for your application,

This is an alt text.

After success configuration,

This is an alt text.

Make Custom Commands as you like or make it shorter

We don't made any feature till for now, but you can do with one easiest way. You can create a Makefile then you can make short the commands or make custom your own linked command.

Make a file called Makefile,

You have to make a file on your root directory. To do it you can use terminal or your can create by your hand. I am showing you with terminal how you can do,

touch Makefile

There is an example of doing that,

After the file creation, you can copy and paste the bellow codes to your Makefile. Or you can write your own command on this file. Makefile

model name:
	npx express-commander make:model $(name)

service:
	npx express-commander make:service $(name)

controller:
	npx express-commander make:controller $(name)

route:
	npx express-commander make:route $(name)

all:
	npx express-commander make:all $(name)

all-schema:
	npx express-commander make:all:schema $(name)

Let's check with testing with our new command here,

Create Model

make model name=<name_of_your_model>

Create Service

make service name=<name_of_your_service>

Create Controller

make controller name=<name_of_your_controller>

Create Route

make route name=<name_of_your_route>

Create (Service, Controller, Route)

make all name=<name_of_your_resource>

Create (Model, Service, Controller, Route)

make all-schema name=<name_of_your_resource>

Links

Check our github if you thinks that, have to contribute for helping on our project, Express-Commander Github.

Developer's Quote

Started with minimal features and going to making more usable features to make Express Application more easier and developers and most loveable development experiences.

Versions

| Versions | Features | | ------------- |:-------------:| | v1.0.0 | Minimal Features | | v1.0.3 | Testing Improved | | v1.0.4 | Command Shorting Feature | | v1.0.5 | Keywords Update | | Coming Soon| Upcoming Feature|