Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 848 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 848 Bytes

NaLunch SDK JS CircleCI

SDK for developing application based on NaLunch provided data.

Usage

Chunks

NaLunch splits world map into cacheable fixed size chunks. Example usage below

const chunkCollectionStore = createChunkCollectionStore();

await chunkCollectionStore.load(
    {
        longitude: 50.50,
        latitude: 20.53,
    },
    moment(),
    5000,
);

console.log(chunkCollectionStore.lunchOffers);

Installation

yarn add nalunch-sdk
npm install nalunch-sdk

Run tests

All of the NaLunch SDK tests are written with jest. They can be run with yarn

yarn test