rhases-nodejs-commons
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.8 • Public • Published

    Build Status

    Node.js Utilities

    Installation

    Using npm:

    $ npm i --save rhases-nodejs-commons

    Using

    Pino Log

    import l from 'rhases-nodejs-commons';
     
    l.error(err);
    l.info("foo", foo);

    Service Utils

    import {ServiceUtils} from 'rhases-nodejs-commons';
     
    serviceUtils = new ServiceUtils(MyMongooseModel);
     
    all() {
      return this.serviceUtils.all();
    }

    Controller Utils

    import {ControllerUtils} from 'rhases-nodejs-commons';
     
    controllerUtils = new ControllerUtils(MyService);
     
    byId(req, res) {
      this.controllerUtils.byId(req, res);
    }

    Control Access

    Install

    npm i rhases-nodejs-commons

    DownloadsWeekly Downloads

    0

    Version

    1.1.8

    License

    MIT

    Unpacked Size

    82.2 kB

    Total Files

    50

    Last publish

    Collaborators

    • gabrielsr
    • mvsgodinho
    • talesap