nestjs-xendit
v0.1.2
Published
NestJS Package wrapper for xendit-node package
Downloads
6
Readme
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.