/nestjs-xendit

A Xendit Node SDK wrapper for NestJS framework

Primary LanguageTypeScriptMIT LicenseMIT

Nest Logo Xendit Logo

Package Version Package License npm Build Project Coverage


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.