Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/arthurc0102/ngx-snake-to-camel

This is a interceptor for angular to convert http response body from snake to camel case and convert http body from camel to snake case.
https://github.com/arthurc0102/ngx-snake-to-camel

Last synced: 24 days ago
JSON representation

This is a interceptor for angular to convert http response body from snake to camel case and convert http body from camel to snake case.

Awesome Lists containing this project

README

        

# NgxSnakeToCamel

This is a interceptor for angular to convert http response body from snake to camel case and convert http request body from camel to snake case.

## Install

```
npm install ngx-snake-to-camel
```

## Use

```typescript
import { NgModule } from '@angular/core';

import { NgxSnakeToCamelModule } from 'ngx-snake-to-camel';

import { AppComponent } from './app.component';

@NgModule({
declarations: [AppComponent],
imports: [
...
NgxSnakeToCamelModule.forRoot(), // Add this
...
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
```