2.1.4 • Published 5 years ago

@crud/core v2.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

#CRUD Operations in Javascript

Installation

npm install @crud/core

or

yarn add @crud/core

Usage

import {CrudRequest} from "@crud/core";

const crud = new CrudRequest();

Config

import {ReQuestOptions} from "@crud/core";

crud.config((config:RequestOptions)=>{
    
    config.callbacks.redirect = (to:string)=>{
        window.location.href = to;
    }
    
    config.callbacks.reload = ()=>{
        window.location.reload();
    }
    
    return config;
})

Methods in CrudRequest

SignatureDescription
send(options: RequestOptions)=>Promise<any>Used to send the request to send data to server and get the response
create(url:string, options: RequestOptions)=>Promise<any>Used to send a create request to server using the send method, but overrides some options to modify the request.
retrieve(url: string, options: RequestOptions)=>Promise<any>Used to send a retrieve request to server using the send method, but overrides some options to modify the request.
update(url:string, options: RequeestOptions)=>Promise<any>Used to send an update request to server using the send method, but overrides some options to modify the request.
delete(url:string, options: RequeestOptions)=>Promise<any>Used to send a delete request to server using the send method, but overrides some options to modify the request.
2.1.4

5 years ago

2.1.3

5 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago