出于[重构基于D3的关系图谱项目]的目的,在看完pixi.js之后,并且网上又没有现成的基于webgl的关系图谱js库,于是,本人决定自己写一个. 因为平常要工作的原因,进度可能有点慢,但是github会同步更新:https://github.com/ecojust/Relation.js. 那么,博客园就用来记录,该库的用法吧. 一.项目结构 images目录放置了一些Relation.js用到的一些内置贴图: js目录放置了pixi.min.js(依赖)和relation.js(模块化),所…
koahub-yilianyun 微信易联云打印机接口 koahub-yilianyun易联云打印机node接口 Installation $ npm install koahub-yilianyun Use with co-request var printer = require('koahub-yilianyun'); var result = yield printer({     "partner": 914,//用户id(管理中心系统集成里获取)      "ap…
moment Parse, validate, manipulate, and display dates      A lightweight JavaScript date library for parsing, validating, manipulating, and formatting dates. Documentation Port to ECMAScript 6 (version 2.10.0) Moment 2.10.0 does not bring any new fea…
ccap node.js generate captcha using c++ library CImg without install any other lib or software node-ccap -- node.js generate captcha using c++ library CImg. You can generate captcha without install any other libraries or software, only do npm install…
mysql A node.js driver for mysql. It is written in JavaScript, does not require compiling, and is 100% MIT licensed. mysql       Table of Contents Install Introduction Contributors Sponsors Community Establishing connections Connection options SSL op…
koahub-handlebars koahub-handlebars koahub handlebars templates Installation $ npm install koahub-handlebars Use with koa  var koa = require('koa');  var hbs = require('koahub-handlebars');    var app = koa();    // koahub-handlebars is middleware. `…
koahub loader Installation $ npm install koahub-loader Use with koa  // 1.model loader   var model = loader([  {      root: './app/model',      suffix: '.model.js'  },  {      root: './addon',      suffix: '.model.js',      filter: [/\w*\/model\//]  …
koahub-skip koahub skip middleware koahub skip Conditionally skip a middleware when a condition is met. Install npm i koahub-skip --save Usage With existing middlewares: var skip = require('koahub-skip'); var serve  = require('koa-static');   var sta…
Installation $ npm install koahub Use with koa   var app = require('koa')();   var router = require('koa-router')();     require('koahub');     for (var key in koahub.controller){       router.use(key, koahub.controller[key]);   }     // sample as   …