2.0.1 • Published 3 years ago

@manishbasnetnp/shared-common v2.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Shared-Common

A common functionalities shared between different services specifically used for Node.js.

Project Status

Shared-Common is a personal project, now in experimental mode. In most cases, you should choose a different library.

Install

$ npm install @manishbasnetnp/shared-common

Usage

const { successResponse, failureResponse } = require('@manishbasnetnp/shared-common')
const response = {
    data: 'example'
};
// In case of success
successResponse(200, 'success', response);

// In case of failure 
failureResponse(500, 'Something went wrong.');

Thank you.

License

Shared-Common is freely distributable under the terms of the MIT license.