
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@crud/core
Advanced tools
#CRUD Operations in Javascript
This is a great library which provides an eloquent interface for CRUD operations in javascript. Also, it has built in support for Webpack and Typescript.
The ability to be fully customized is what make this library suitable for any javascript framework, such as Angular, ReactJS or Vue.js.
The CrudRequest class can be fully customized via callbacks for every action.
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
Signature | Description |
---|---|
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. |
FAQs
Great library for CRUD operations in Javascript
The npm package @crud/core receives a total of 0 weekly downloads. As such, @crud/core popularity was classified as not popular.
We found that @crud/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.