@lightech-llc/case-converter
TypeScript icon, indicating that this package has built-in type declarations

0.0.7 • Public • Published

Lightech Angular Interceptor

This interceptor was created to work around Python BE and convert snake_cased response to appropriate camelCase and backwards for payload.

Installation and setup

Run this command to install the package:

yarn add @lightech-llc/case-converter

Add this CASE_CONVERTER_PROVIDER to the providers: [] list of the root module of your application:

import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';

import {CASE_CONVERTER_PROVIDER} from '@lightech-llc/case-converter';

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

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule],
  providers: [CASE_CONVERTER_PROVIDER],
  bootstrap: [AppComponent],
})
export class AppModule {}

Package Sidebar

Install

npm i @lightech-llc/case-converter

Weekly Downloads

0

Version

0.0.7

License

Apache-2.0

Unpacked Size

33.5 kB

Total Files

23

Last publish

Collaborators

  • antonblits
  • zhmanskiy
  • nikita.kovalev.work
  • thelightech