Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        



Nest Logo


Xendit Logo


Package Version
Package License
npm
Build Project
Coverage


# 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.