appknit-backend-bundle
This is the standalone bundled modules package for common service and utility functions that are used across multiple projects.
Last updated 6 months ago by sharma02gaurav .
ISC · Original npm · Tarball · package.json
$ cnpm install appknit-backend-bundle 
SYNC missed versions from official npm registry.

AppKnit Backend Module Bundle

This is the standalone bundled modules package for common service and utility functions that are used across multiple projects.

Installation

npm install --save appknit-backend-bundle

Usage

To use this package you must first install the package using the above command. and use the nodejs require or ES6 import to load the utility and services from the bundle. Following is the sample code format to use the ResponseUtility from the appknit-backend-bundle.

import { ResponseUtility } from 'appknit-backend-bundle';

export default ({ }) => new Promise((resolve, reject) => {
	// your code implementation

	return resolve(ResponseUtility.SUCCESS({ message: 'Saved data.' }));
});

The full documentation of the module could be found in appknit-backend-bundle WIKI

Bundle Components

The bundle components are divided into services and utility.

The package is bundled with the following services:

  • EmailServices: to send plain emails using nodemailer.
  • MultipartService: to parse the multipart/form-data and bind the incoming form field images to the respective request body object.
  • LogServices: Middleware to handle logs.
  • S3Services: Functions related to managing data over S3 Bucket.
  • StripeServices: Functions related to handle stripe payments.
  • TemplateMailServices: Helping functions to send the template emails using nodemailer templates.
  • MessageService: Service to send the SMS on phone.
  • VerifyFacebookTokenService: Authenticate the facebook token.
  • MergingMultipartService: Merge all of the images to a single image property as array of Buffer objects.
  • PropsInjectionService: Injecting the properties in route middleware by injecting the desired value to a single service and hence using the same underlying functionality but on different routes that are separated just by a flag or prop injection.

The package is bundled with the following utilities:

  • HashUtility: generate or compare the hash of plain text.
  • PropsValidationUtility: Validates the incoming properties against the required properties. If not, This will generate a custom dynamic response message representing the properties that are required but are missing.
  • RandomCodeUtility: utility function to generate the random numbers of any health.
  • ResponseUtility: Contains very important response utility functions. It includes generic functions like SUCCESS(), GENERIC_ERROR() etc.
  • SchemaMapperUtility: Checks which properties of a schema to consider and which mot.
  • TimeConversionUUtility: Time Related conversion and handling.
  • TokenUtility: Generate the authentication and decode it.

Author

gaurav sharma

Current Tags

  • 1.0.76                                ...           latest (6 months ago)

36 Versions

  • 1.0.76                                ...           6 months ago
  • 1.0.75                                ...           6 months ago
  • 1.0.74                                ...           8 months ago
  • 1.0.73                                ...           8 months ago
  • 1.0.72                                ...           8 months ago
  • 1.0.71                                ...           10 months ago
  • 1.0.7                                ...           10 months ago
  • 1.0.64                                ...           a year ago
  • 1.0.63                                ...           a year ago
  • 1.0.62                                ...           a year ago
  • 1.0.61                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.59                                ...           a year ago
  • 1.0.58                                ...           a year ago
  • 1.0.57                                ...           2 years ago
  • 1.0.56                                ...           2 years ago
  • 1.0.55                                ...           2 years ago
  • 1.0.53                                ...           2 years ago
  • 1.0.52                                ...           2 years ago
  • 1.0.51                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.41                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.363                                ...           2 years ago
  • 1.0.361                                ...           2 years ago
  • 1.0.36                                ...           2 years ago
  • 1.0.35                                ...           2 years ago
  • 1.0.34                                ...           2 years ago
  • 1.0.33                                ...           2 years ago
  • 1.0.32                                ...           2 years ago
  • 1.0.31                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.21                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (17)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |