1.0.0 • Published 3 years ago

tenantapp-helper-functions v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
3 years ago

helper-functions for Tenant App

This package helps to make two set of functions available globally in tenantApp

Installation

To install, use the command below code npm install tenantapp-helper-functions

Usage

How to require the 2 functions.

code const { isValidMongooseId } = require('tenantapp-helper-functions'); code const { schemaError} = require('tenantapp-helper-functions');;

The isValidMongooseId function usage

code isvalidMongooseId('pass in the mongoose Id');

The schemaError function usage

code schema('pass in the model');