首页 开发技术 其它     /    express-user-model:一个为用户骨干提供基本需求的库。假定您将Mongoose与Mongoose驱动程序一起使用-源码

express-user-model:一个为用户骨干提供基本需求的库。假定您将Mongoose与Mongoose驱动程序一起使用-源码

上传者: weixin_42170064 | 上传时间:2025/8/5 5:52:12 | 文件大小:35KB | 文件类型:ZIP
express-user-model:一个为用户骨干提供基本需求的库。假定您将Mongoose与Mongoose驱动程序一起使用-源码
快速用户模型这是一个为用户骨干提供基本需求的库。
假设您将Mongoose与Mongoose驱动程序一起使用。
该插件将在您的用户模型中添加以下字段。
用户名电子邮件名字姓对于密码存储,尽管您可以自由使用任何必需的内容,但我们建议您将与一起使用。
安装这是通过提供的模块。
使用完成:$npminstallexpress-user-model用法首先创建一个用户架构,并使用如下所示的插件。
varmongoose=require('mongoose');varSchema=mongoose.Schema;varEUM=require('express-user-model');constUserSchema=newSchema({});UserSchema.plugin(EUM);(可选)要添加身份验证和密码字段,可以使用本地护照,如下所示。
constpassportLocalMongoose=require('passport-local-mongoose' 本软件ID:15003933

文件下载

资源详情

[{"title":"(27个子文件35KB)express-user-model:一个为用户骨干提供基本需求的库。假定您将Mongoose与Mongoose驱动程序一起使用-源码","children":[{"title":"express-user-model-master","children":[{"title":".travis.yml <span style='color:#111;'>105B</span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'>377B</span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'>981B</span>","children":null,"spread":false},{"title":".github","children":[{"title":"FUNDING.yml <span style='color:#111;'>373B</span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"test.js <span style='color:#111;'>3.07KB</span>","children":null,"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'>1.04KB</span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'>49.39KB</span>","children":null,"spread":false},{"title":"CONTRIBUTING.md <span style='color:#111;'>4.85KB</span>","children":null,"spread":false},{"title":".idea","children":[{"title":"markdown-navigator","children":[{"title":"profiles_settings.xml <span style='color:#111;'>104B</span>","children":null,"spread":false}],"spread":true},{"title":"jsLinters","children":[{"title":"jshint.xml <span style='color:#111;'>2.53KB</span>","children":null,"spread":false}],"spread":true},{"title":"misc.xml <span style='color:#111;'>174B</span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'>180B</span>","children":null,"spread":false},{"title":"express-user-model.iml <span style='color:#111;'>458B</span>","children":null,"spread":false},{"title":"modules.xml <span style='color:#111;'>288B</span>","children":null,"spread":false},{"title":"jsLibraryMappings.xml <span style='color:#111;'>187B</span>","children":null,"spread":false},{"title":"encodings.xml <span style='color:#111;'>135B</span>","children":null,"spread":false},{"title":"markdown-navigator.xml <span style='color:#111;'>4.17KB</span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'>15.09KB</span>","children":null,"spread":false},{"title":"inspectionProfiles","children":[{"title":"Project_Default.xml <span style='color:#111;'>249B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".gitignore <span style='color:#111;'>914B</span>","children":null,"spread":false},{"title":"lib","children":[{"title":"basic.js <span style='color:#111;'>1.40KB</span>","children":null,"spread":false},{"title":"email.js <span style='color:#111;'>2.28KB</span>","children":null,"spread":false},{"title":"verify.js <span style='color:#111;'>822B</span>","children":null,"spread":false}],"spread":true},{"title":"Makefile <span style='color:#111;'>94B</span>","children":null,"spread":false},{"title":"CODE_OF_CONDUCT.md <span style='color:#111;'>3.28KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>4.87KB</span>","children":null,"spread":false},{"title":".jshintrc <span style='color:#111;'>163B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明