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

api-jst

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-jst

服务端代码调用生成器

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

#api-jst 在编码前后端分离的项目过程中,往往我们要为后端编码服务所费心 每个服务对应一个前端的方法或者前端的类,而这个过程往往可以通过自动化来完成 ==api-jst会帮助我们完成这个过程==

#我们如何使用

####Step1.安装api-jst

  npm install api-jst -g

####Step2.在需要使用到的项目中初始化

  mkdir demo&&cd demo
  api-jst init

####Step3.初始化以后,会存在相应的配置文件和项目模板文件

 demo              测试文件目录
 -api-jst          配置文件目录
 --temp            配置文件模板目录
 ---constant.ejs   配置常量模板
 ---service.ejs    配置服务端模板
 --config.js       配置文件详情

####Step4.配置config.js ejs 详细模板引擎编写方法

template: "/api-jst/temp/service.ejs",                服务地址模板
urlTemplate: "/api-jst/temp/constant.ejs",            常量模板
output: "/api-jst/output/${name}ApiService.js",       输出文件路径
urlConstantOutput: "/api-jst/output/urlConstant.js",  常量输出路径
api: "http://172.29.20.41:9090/template/index",       服务数据读取地址

####Step5.开始导出

  api-jst

###版本还在继续发展和升级中,致力于打造简单便捷的工具

FAQs

Package last updated on 31 Aug 2017

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