nodejs-kissy icon indicating copy to clipboard operation
nodejs-kissy copied to clipboard

run kissy on nodejs

h1. KISSY for NodeJS

nodejs-kissy 实现了将 kissy 移植到 nodeJS 上运行

它依赖jsdom,htmlparser,express,connect,第一次安装请执行

npm install jsdom
npm install htmlparser
npm install express
npm install connect

h1. 通过NPM安装 nodejs-kissy

需要预装 npm

npm install kissy

h1. 通过源码安装 nodejs-kissy

需要预装 npm 和 git

git clone git://github.com/kissyteam/nodejs-kissy.git
cd nodejs-kissy/
npm install .

h1. Hello World

新建文件test.js

var S = require('kissy').KISSY;
S.ready(function(S){
	S.log('hello world!');	
});

运行

node test.js

h1. Using KISSY

"KISSY-Calendar Demo"://gist.github.com/662117

h1. License

KISSY 遵守 "MIT":https://github.com/kissyteam/kissy/blob/master/LICENSE.md 协议