Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

escalade-price-store

1.1.3 • Public • Published

escalade-price-store

An event-based store system for getting Escalade Sports pricing. Stores all fetched prices in a cookie for quick retrieval.

Installation

yarn add escalade-price-store

Usage

import PriceStore from 'escalade-price-store'
 
const priceStore = new PriceStore({
    site: `goalrilla`,
    ids: [ `ID1`, `ID2` ]
})
 
function allChanged(prices){
    console.log(prices)
}
 
priceStore.addEvent(allChanged)
 
priceStore.removeEvent(allChanged)

install

npm i escalade-price-store

Downloadsweekly downloads

1

version

1.1.3

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar