Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arthurc0102/ngx-snake-to-camel
- Owner: arthurc0102
- Created: 2020-08-31T06:23:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T09:18:17.000Z (over 4 years ago)
- Last Synced: 2024-04-26T05:44:49.468Z (8 months ago)
- Language: TypeScript
- Size: 161 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 {}
```