# easynode **Repository Path**: xiaodpro/easynode ## Basic Information - **Project Name**: easynode - **Description**: 快速实现基于nodejs的后端服务 - **Primary Language**: NodeJS - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-06-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #easynode 使用示例 ``` //form: {fields: Object, files: Object} $('/', function(form, e){ console.log(JSON.stringify(form)); //the default render is markerjs this.render("welcome", {title: "The easynode server"}); }); //matching "/user/xxx" $('/user/${username}', function(form, e){ this.write("welcome, "+e.pathvars.username); this.end(); }); //matching "/system/xxx/view" $('/system/?/view', function(form, e){ this.write("Path: "+e.url); this.end(); }); //matching "/assets/*" $('/assets/*', function(form, e){ require('fs').createReadStream("/local/path/"+e.url).pipe(this); }); ```