🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

g2m

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

g2m

A nodejs micro framework

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
3
-25%
Maintainers
1
Weekly downloads
 
Created
Source

g2m框架

npm 全局安装

npm i g2m -g

命令列表

启动服务

g2m start --config 配置文件绝对路径

停止服务

g2m stop -p PID

删除服务

g2m delete -p PID

重启服务

g2m restart -p PID

查看进程列表

g2m list

监控模式

g2m monit

控制台打印日志

g2m logs

API 引入

npm i g2m -S

启动

//main.js
const { g2m } = require('g2m');

const config = {}
g2m.run(config)

服务路由写法

FAQs

Package last updated on 12 Nov 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