Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcphysx/nestjs-xendit
A Xendit Node SDK wrapper for NestJS framework
https://github.com/arcphysx/nestjs-xendit
nest nestjs nestjs-module typescript xendit xendit-api
Last synced: about 1 month ago
JSON representation
A Xendit Node SDK wrapper for NestJS framework
- Host: GitHub
- URL: https://github.com/arcphysx/nestjs-xendit
- Owner: arcphysx
- License: mit
- Created: 2023-10-24T11:25:04.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-04T03:27:14.000Z (9 months ago)
- Last Synced: 2024-11-15T03:52:17.339Z (about 2 months ago)
- Topics: nest, nestjs, nestjs-module, typescript, xendit, xendit-api
- Language: TypeScript
- Homepage: https://github.com/arcphysx/nestjs-xendit/
- Size: 69.3 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NestJS Xendit
A [Xendit Node SDK](https://www.xendit.co/) wrapper for [NestJS framework](http://nestjs.com/)
**THIS IS NOT AN OFFICIAL PACKAGE FROM XENDIT OR NESTJS**
## Installation
NPM:
```bash
npm i --save nestjs-xendit
```Yarn:
```bash
yarn add nestjs-xendit
```## Usage/Examples
Sync:
```js
XenditModule.register({
secretKey: "XENDIT_KEY"
})
```Async:
```js
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.