0.1.2 • Published 1 month ago

nestjs-xendit v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

NestJS Xendit

A Xendit Node SDK wrapper for NestJS framework

THIS IS NOT AN OFFICIAL PACKAGE FROM XENDIT OR NESTJS

Installation

NPM:

npm i --save nestjs-xendit

Yarn:

yarn add nestjs-xendit

Usage/Examples

Sync:

XenditModule.register({
    secretKey: "XENDIT_KEY"
})

Async:

XenditModule.registerAsync({
    useFactory: (configService: ConfigService) =>{
        return {
            secretKey: configService.get('XENDIT_KEY')
        }
    },
    inject: [ConfigService]
})

Contributing

Contributions are always welcome!

Feel free to patch / edit / optimize / add features. PR are Welcome.