@c4fl/user-mgmt

A module for managing user in a cms

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
Minified + gzip package size for @c4fl/user-mgmt in KB

Readme

@c4fl/user-mgmt

A module to easily manage user in your node app.


Install

npm i -S @c4fl/user-mgmt

Usage

require('dotenv').config();
import {UserModule} from '@c4fl/user-mgmt';
import mongoose from 'mongoose';
import express from 'express';

const router = express.Router();
const app = express();

app.use(express.json());
app.use(express.urlencoded());

const userModule = new UserModule(app);

router.use('',userModule.api);
router.use('',userModule.web);

Create a .env file

set the following variable.

C4FL_USER_SECRET=

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.