npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bex-adaptive-pricin-toolkit

v1.0.62

Published

`bex-adaptive-pricing-toolkit` je moćan alat zasnovan na Redux Saga za upravljanje podacima o cenama i adresama u aplikacijama. Ovaj paket omogućava fleksibilnu konfiguraciju i višekratnu upotrebu, olakšavajući rad sa složenim poslovnim logikama.

Downloads

616

Readme

Bex Adaptive Pricing Toolkit

bex-adaptive-pricing-toolkit je moćan alat zasnovan na Redux Saga za upravljanje podacima o cenama i adresama u aplikacijama. Ovaj paket omogućava fleksibilnu konfiguraciju i višekratnu upotrebu, olakšavajući rad sa složenim poslovnim logikama.


Instalacija

Koristite npm ili yarn za instalaciju paketa:

npm install bex-adaptive-pricing-toolkit
# ili
yarn add bex-adaptive-pricing-toolkit

Kako koristiti

1. Integracija sa Redux Store-om

Dodajte initializeSaga u vašu Redux konfiguraciju, sa odgovarajućim zavisnostima (deps):

import { configureStore } from '@reduxjs/toolkit';
import createSagaMiddleware from 'redux-saga';
import { initializeSaga } from 'bex-adaptive-pricing-toolkit';

// Definišite zavisnosti za inicijalizaciju
const dependencies = {
  updateSenderAction: updateSender,
  updateRecipientAction: updateRecipient,
  deleteAllSenderDataAction: deleteAllSenderData,
  deleteAllRecipientDataAction: deleteAllRecipientData,
  selectSenderState: (state) => state.shortenedSchedule.sender,
  selectRecipientState: (state) => state.shortenedSchedule.recipient,
  selectPriceListState: (state) => state.changePriceList.priceListData,
  handleSenderAddressPriceUpdate: yourSenderAddressPriceUpdateFunction,
  handleRecipientAddressPriceUpdate: yourRecipientAddressPriceUpdateFunction,
};

// Kreirajte Saga middleware
const sagaMiddleware = createSagaMiddleware();

// Konfigurišite Redux Store
const store = configureStore({
  reducer: {
    // Dodajte svoje reducere ovde
  },
  middleware: (getDefaultMiddleware) =>
    getDefaultMiddleware({ serializableCheck: false }).concat(sagaMiddleware),
});

// Pokrenite sagas
sagaMiddleware.run(() => initializeSaga(dependencies));

2. Višestruke Sage sa različitim zavisnostima

Možete pokrenuti više instanci initializeSaga sa različitim zavisnostima, prilagođenim različitim poslovnim scenarijima.

import { initializeSaga as senderSaga } from 'bex-adaptive-pricing-toolkit';
import { initializeSaga as recipientSaga } from 'bex-adaptive-pricing-toolkit';

const senderDependencies = {
  // Zavisnosti specifične za sender
};

const recipientDependencies = {
  // Zavisnosti specifične za recipient
};

// Pokrenite sage
sagaMiddleware.run(() => senderSaga(senderDependencies));
sagaMiddleware.run(() => recipientSaga(recipientDependencies));

Ključne Karakteristike

  • Fleksibilna konfiguracija: Omogućava lako prilagođavanje poslovnim potrebama pomoću definisanja zavisnosti (deps).
  • Višekratna upotreba: Može se koristiti u različitim aplikacijama i scenarijima bez menjanja osnovne logike.
  • Modularni dizajn: Podržava višestruke nezavisne sage za razdvajanje odgovornosti.

Zavisnosti

Ovaj paket se oslanja na sledeće biblioteke:


Contributing

Vaše sugestije, ispravke i poboljšanja su dobrodošla!
Ako želite da doprinesete:

  1. Fork-ujte repozitorijum.
  2. Napravite granu za vašu izmenu: git checkout -b feature/your-feature.
  3. Pošaljite PR sa jasnim opisom promena.

Za više informacija, posetite GitHub repo.


Licenca

Ovaj paket je objavljen pod MIT licencom.