1.0.8 • Published 6 years ago

risto v1.0.8

Weekly downloads
3
License
MIT
Repository
-
Last release
6 years ago

Order restaurant simulator

a simple package with functions to manage orders of a restaurant

Install

$ npm install risto

Usage

var orders = require('risto');

Get all the orders from your array with getOrders().

orders.getOrders();

Get an order by status with getOrderByStatus(status).

orders.getOrderByStatus(status);

Add a new order with addOrder(dishes, bill). The package will automatically assign an id and name through your token to the new order.

orders.addOrder(dishes, bill);

Delete an order by id with deleteOrder(id).

orders.deleteOrder(id);

Modify status with setOrder(id, status).

orders.setOrder(id, status);

Get all the orders by an user through his token getOrderByToken(token) .

orders.getOrderByToken(token);

Reset original orders array with reset().

orders.reset();
1.0.8

6 years ago

1.0.7

6 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