1.0.0 • Published 3 years ago

payuung v1.0.0

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

Payuung

The Payuung package contains several method that help you in developing applications. This package exported as Node.js modules.

Quick Start

Installation using npm:

npm i -g npm
npm i --save payuung 

Use Payuung in your code:

// Load the full build
var payuung = require('payuung')

// Load method categories
var response = require('payuung').response
var username = require('payuung').usernameFromEmail

Method List

response

create response from specific custom languange arguments. Before you use this method, create JSON file inside ../utils folder. Name the file in accordance with the language used, example en.json, "en" stand for "english" language, it's up to you. The name of the object in the file will be a keyword to call response. You can create several file and response as much as you want.

key : keyword to call specific response
lang: Name of file that you want to uses

{
     "employee_not_found": "Employee is not found"
}

You can call the method like this:

var response = require('payuung').response
response(employee_not_found, en)

phoneNumberID

mbProducerMessage

mBProducerMail

mBConsumer

formatNumber

formatNumberRupiah

usernameFromEmail

validateEmail

paginate

phonePrefix

phoneReplace

getToken

rpcClientS3

sendRPCMessageS3

1.0.0

3 years ago