nemjs

    0.1.1 • Public • Published

    nemjs

    A JavaScript Backend Service Library

    Codacy Badge Maintainability

    GitHub Last Commit NPM Montly Downloads

    GitHub Top Language Code Size GitHub License

    Overview

    nemjs is a JavaScript Backend Service Library.
    You will find Checkers for Auth/Login/User & a Getter for Nodemailer.

    Summary


    Package

    NPM : npm i nemjs
    Yarn : yarn add nemjs


    Download

    Latest Release

    git clone https://github.com/philippebeck/nemjs.git


    Content

    • auth(req, res, next) : verify authenticated routes
    • login(req, res, user) : verify user login
    • user(req, res) : verify user CRUD
    • mailer() : get the mailer

    Usage

    1. Copie the .env.example file to your project root, rename it .env & replace values with your own values
    2. Add const nem = require("nemjs") where you need (file or function top level)
    3. Then use it like these examples :
      • router.get("/", nem.auth, UserCtrl.list)
      • nem.login(req, res, user)
      • nem.user(req, res)
      • const mailer = nem.mailer()

    Install

    npm i nemjs

    DownloadsWeekly Downloads

    2

    Version

    0.1.1

    License

    Apache-2.0 License

    Unpacked Size

    17.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • philippebeck