yunlongzha_try_nodejs
Version:
try it
1 lines • 15.7 kB
JSON
{"_id":"ueditor-nodejs","_rev":"21-4dd85edfb3ceb25f5a45ba8f494fb4f2","name":"ueditor-nodejs","description":"ueditor nodejs server support localstorage and bcs","dist-tags":{"latest":"0.1.2"},"versions":{"0.0.1":{"name":"ueditor-nodejs","version":"0.0.1","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"9b960cd58c70a4ad95bb9c2a009985da50069e9f","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.1","_shasum":"82a53f1f95bb0034e5a1591aa10c72e28b22d53c","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"82a53f1f95bb0034e5a1591aa10c72e28b22d53c","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.1.tgz"},"directories":{}},"0.0.2":{"name":"ueditor-nodejs","version":"0.0.2","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"2b2a06a37a67d0e1a12ac10e5b88aa412621c701","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.2","_shasum":"5af5ef7ab128a8f2f447858030c45571593038a0","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"5af5ef7ab128a8f2f447858030c45571593038a0","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.2.tgz"},"directories":{}},"0.0.3":{"name":"ueditor-nodejs","version":"0.0.3","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"2b2a06a37a67d0e1a12ac10e5b88aa412621c701","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.3","_shasum":"c63815012034a63958192cc6639d089b537bb843","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"c63815012034a63958192cc6639d089b537bb843","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.3.tgz"},"directories":{}},"0.0.4":{"name":"ueditor-nodejs","version":"0.0.4","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.4","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"95ce030463f0b598b11a00ea9e019672cd0d7ee5","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.4","_shasum":"1f427874d0e3503e6c18663bb57da4300e0315c2","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"1f427874d0e3503e6c18663bb57da4300e0315c2","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.4.tgz"},"directories":{}},"0.0.5":{"name":"ueditor-nodejs","version":"0.0.5","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.4","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"95ce030463f0b598b11a00ea9e019672cd0d7ee5","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.5","_shasum":"a726a368c9437b536715b2dda5010f74fc24a185","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"a726a368c9437b536715b2dda5010f74fc24a185","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.5.tgz"},"directories":{}},"0.0.6":{"name":"ueditor-nodejs","version":"0.0.6","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.4","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"56f68f0c3e7a2f8d2b30e562692e0549a9426eb9","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.6","_shasum":"99f76c5acc994631930f5bdaa559e0ef931e3a7b","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"99f76c5acc994631930f5bdaa559e0ef931e3a7b","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.6.tgz"},"directories":{}},"0.0.7":{"name":"ueditor-nodejs","version":"0.0.7","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.4","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"5f8d13d14dc9a2d7c735aadd14c4681f80b4061b","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.7","_shasum":"c175ad725f5d0ed800ab09e10bf8f7693e9fe483","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"c175ad725f5d0ed800ab09e10bf8f7693e9fe483","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.7.tgz"},"directories":{}},"0.0.8":{"name":"ueditor-nodejs","version":"0.0.8","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.4","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"4a72a364968fbbbde826222b9afbaeb373b4938a","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.8","_shasum":"73372d369661a4ca74b90755dd4662f61e51fedc","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"73372d369661a4ca74b90755dd4662f61e51fedc","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.8.tgz"},"directories":{}},"0.0.9":{"name":"ueditor-nodejs","version":"0.0.9","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.5","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"55119ff0578c328abdf5edc25937a4a09942d1c8","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.0.9","_shasum":"1bbca7fe8e0716e807885e5035356aa1fa02950d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"1bbca7fe8e0716e807885e5035356aa1fa02950d","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.0.9.tgz"},"directories":{}},"0.1.0":{"name":"ueditor-nodejs","version":"0.1.0","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.5","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"72dd29e1a7e0120c1825f17ce3d54de754af2500","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.1.0","_shasum":"715ddf6b0c778d793e4722e68f2363c97547fa47","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"715ddf6b0c778d793e4722e68f2363c97547fa47","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.1.0.tgz"},"directories":{}},"0.1.1":{"name":"ueditor-nodejs","version":"0.1.1","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.6","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"873eaf4c100983ae3b1dc1925802f7ca0a65b97f","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.1.1","_shasum":"af589d132ca6a9dfae2c378a4295531436c11c39","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"af589d132ca6a9dfae2c378a4295531436c11c39","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.1.1.tgz"},"directories":{}},"0.1.2":{"name":"ueditor-nodejs","version":"0.1.2","description":"ueditor nodejs server support localstorage and bcs","author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"main":"./ueditor","scripts":{"test":"node test/test.js"},"repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"dependencies":{"bcs-nodejs-sdk":"0.0.6","busboy":"^0.2.9","fs-extra":"^0.16.4"},"gitHead":"d53b857681f9e077b5eeab310740e3f2017066a6","bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","_id":"ueditor-nodejs@0.1.2","_shasum":"2271f26d7daaf33f731215aeb83a15ef5ff6ddb9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"longmenwaideyu","email":"842450138@qq.com"},"maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"dist":{"shasum":"2271f26d7daaf33f731215aeb83a15ef5ff6ddb9","tarball":"http://registry.npmjs.org/ueditor-nodejs/-/ueditor-nodejs-0.1.2.tgz"},"directories":{}}},"readme":"ueditor-nodejs\n=============\n\n##ueditor的nodejs版后台,支持本地存储和百度云存储\n\n###使用方法\n\n####1. 安装\n\n\tnpm install ueditor-nodejs --save\n\n####2. 到ueditor官网下载php版或者jsp版的ueditor,将ueditor放入public下,重命名文件夹为ueditor\n\n####3. 将ueditor.config.js中的serverURL改为 URL + \"ue\"\n\n####4. 注册后台\n\n\tvar ueditor = require('ueditor-nodejs');\n app.use('/ueditor/ue', ueditor({//这里的/ueditor/ue是因为文件件重命名为了ueditor,如果没改名,那么应该是/ueditor版本号/ue\n configFile: '/ueditor/php/config.json',//如果下载的是jsp的,就填写/ueditor/jsp/config.json\n mode: 'bcs', //本地存储填写local\n accessKey: 'Adxxxxxxx',//本地存储不填写,bcs填写\n secrectKey: 'oiUqt1VpH3fdxxxx',//本地存储不填写,bcs填写\n staticPath: path.join(__dirname, 'public'), //一般固定的写法,静态资源的目录,如果是bcs,可以不填\n dynamicPath: '/blogpicture' //动态目录,以/开头,bcs填写buckect名字,开头没有/.路径可以根据req动态变化,可以是一个函数,function(req) { return '/xx'} req.query.action是请求的行为,uploadimage表示上传图片,具体查看config.json.\n }));\n\n####5. 动态目录示例\n\n这里例子是这个博客中的一段代码,如果是我自己上传图片,就放在uploadimage下,访客的图片放在visitorimage下。dynamicPath参数填写这个函数就可以了。bcs暂不支持自动创建目录操作,所以,返回的bucket必须是存在的,buckect开头没有/。\n\n\tvar dynamicPath = function (req) {\n\t\tif (req.query.action == 'uploadimage') {//如果是上传图片\n\t\t\tif (req.session.isMe) {//如果是博主自己\n\t\t\t\treturn '/uploadimage'\n\t\t\t} else {//其余的当作访客\n\t\t\t\treturn '/visitorimage'\n\t\t\t}\n\t\t}\n\t}\n\n###6. 作者个人博客\n[longmenwaideyu.cn](http://longmenwaideyu.cn)\n\n如有任何问题可以在这里留言,或者直接联系我\n[http://www.longmenwaideyu.com/article/ueditor_nodejs_bcs_local](http://www.longmenwaideyu.com/article/ueditor_nodejs_bcs_local)\n\n","maintainers":[{"name":"longmenwaideyu","email":"842450138@qq.com"}],"time":{"modified":"2015-05-09T01:44:08.813Z","created":"2015-03-07T05:02:59.974Z","0.0.1":"2015-03-07T05:02:59.974Z","0.0.2":"2015-03-07T05:17:54.781Z","0.0.3":"2015-03-07T05:19:59.887Z","0.0.4":"2015-03-09T08:23:11.971Z","0.0.5":"2015-03-10T11:00:00.997Z","0.0.6":"2015-03-10T11:17:23.661Z","0.0.7":"2015-03-16T08:26:36.538Z","0.0.8":"2015-03-19T08:39:12.383Z","0.0.9":"2015-03-20T14:04:03.023Z","0.1.0":"2015-03-27T13:05:12.230Z","0.1.1":"2015-04-20T03:41:02.274Z","0.1.2":"2015-05-09T01:44:08.813Z"},"homepage":"https://github.com/longmenwaideyu/ueditor-nodejs","repository":{"type":"git","url":"https://github.com/longmenwaideyu/ueditor-nodejs.git"},"author":{"name":"longmenwaideyu","email":"842450138@qq.com","url":"longmenwaideyu.com"},"bugs":{"url":"https://github.com/longmenwaideyu/ueditor-nodejs/issues"},"readmeFilename":"README.md","_attachments":{},"_etag":"\"9GU7XLIXYA4GXAND51YITU3KL\""}