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

tool4ssh

v1.0.1

Published

SSH代码自动生成工具

Downloads

9

Readme

tool4SSH

SSH框架代码自动生成工具

  • 简单配置便可生成SSH框架常用文件,包括action,bean,service,dao,struts,map(iBATIS)等文件
  • 可将生成文件自动配添加到配置文件
  • 高度可定制,包括文件名称、路径、内容
  • 现有两个版本可用,node版和node-webkit版。nw比node多了操作界面。

Node.js version

下载并安装依赖

npm install ejs
npm install mkdirp
npm install xlsjs

配置路径 config/path.json (必配置)

{
    "srcPath":"D:/sample/src",   //工程src所在路径
	"pkgPath":"D:/sample/src/com",  //包存放路径
	"sqlMap":"D:/sample//sqlMapConfig.xml", //iBATIS库对应配置文件  可为空
	"dbCtx":"D:/sample/applicationContext-database.xml",//配置dao bean文件 可为空
	"serviceCtx":"D:/sample/appContext.xml",//配置action,service bean文件 可为空
	"structs":"D:/sample/struts.xml" //struts配置文件 可为空
}

使用excel文件导入数据源 config/data.json (必配置)

{
    "name":"KdjMovein", // 模块名称
    "excelpath":"D:/sample/detail.xls", //excel文件路径 
    "sheetName":"KDJ_MOVEINDETAIL_T", //excel工作表名称
    "valColumn":"属性值", //实体的属性列名称 
	"antColumn":"中文说明" //实体属性说明列名称,需要与在上列在同一行
}

配置文件基本属性 config/files.json (可选)

[
    {
      "type":"action", //文件类型
      "pathSuf":"/action", //路径后缀,文件路径=path.pkgPath(包路径)+pathSuf
      "nameSuf":"action", //名称后缀,文件名称=data.name(模块名)+nameSuf
      "format":".java" //文件格式,省缺为.java
    }
]

使用ejs制作文件模板 config/template (可选)

<!-- 可使用配置在files.json中的所有对象,并多了几种属性 -->
<%=action.name%>  <!-- 名称 ZzaAction -->
<%=action.clsName%>  <!-- 类路径 com.xx.yy.ZzAction -->
<%=action.pkgName%>  <!-- 包路径 com.xx.yy -->

执行

node index.js

node-webkit version(带UI)

安装node-webkit,启动即可使用

nw tool4SSH

License

MIT