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

@emvicify/cli

v0.0.43

Published

CLI for Emvicify Framework

Downloads

11

Readme

Emvicify CLI

Scaffolding tool for Emvicify

NPM Version Build Status

Wiki

Installation

You can install the package from npm.

npm i -g @emvicify/cli

Usage

For the complete command list, please go to the Wiki - CLI Command List page

mfy --help
emvicify --help

Getting started

  1. Run the command in your NPM Project folder
mfy here
  1. Follow the wizard
  2. (Optional) Power emvicify with its plugins

Happy coding ;)

CLI Commands Examples

For the complete command list, please go to the Wiki - CLI Command List page

Add a new controller - it'll create an UsersController class

mfy add:controller Users

or

mfy ac Users

Add a new router - it'll create an AuthRouter class

mfy add:router Auth

or

mfy ar Auth

Add a new service - it'll create an UsersManagementService class

mfy add:service UsersManagement

or

mfy as UsersManagement

Add a new empty middleware - it'll create an AuthMiddleware class

mfy add:middleware Auth

or

mfy am Auth

Add a new Basic Authentication middleware (overriding all virtual methods for you to use it)

mfy am --authentication basic --with-overrides Auth

FAQ

How can I add an express plugin?

You can add a function called "configureAppBeforeServe" with your custom implementation.

Complete example

const { start } = require("emvicify");
const settingsFile = require("./settings.json");
const expressSettings = {
    bodyParserJson: true,
    bodyParserUrlencoded: true,
    bodyParserRaw: false
};

function configureAppBeforeServe(app, http) {
    //  Extra express plugin
    const cors = require("cors");
    app.use(cors());
}

start(process.cwd(), settingsFile.port, { settingsFile, expressSettings, configureAppBeforeServe }).then(() => {
    console.log(`Listening on port ${settingsFile.port}`);
}, err => {
    console.error("Application failed", err);
});