@open-tender/js

2.4.0 • Public • Published

@open-tender/js

Various helper functions for use with the Open Tender open source apps:

This library is only relevant for restaurant brands that are customers of Open Tender. To learn more about establishing an Open Tender account, please visit our website.

Installation

Install via yarn:

yarn add @open-tender/js

Or via npm:

npm install --save @open-tender/js

Purpose

This library provides most of the core logic and various helper functions used across the Open Tender apps listed above, including things like:

  • constants
  • formatting (currencies, phone numbers, etc.)
  • datetime manipulations (lots of them)
  • calculating prices and calories
  • cart management & validation logic
  • order serialization
  • checkout logic

The goal is to handle all of the boring, tedius, and/or complex logic involved in managing an Open Tender commerce experience so you can focus on the more exciting parts of builing the user experience.

Usage

The best way to get to know this library is to start working with one of the Open Tender open source apps listed above - it's used so extensively that it will be hard to miss it!

Issues

If you find a bug or have a question, please file an issue on our issue tracker on GitHub.

License

MIT

About

Built and maintained by Open Tender.

Package Sidebar

Install

npm i @open-tender/js

Weekly Downloads

14

Version

2.4.0

License

MIT

Unpacked Size

590 kB

Total Files

7

Last publish

Collaborators

  • shady.abdelaziz.farahat
  • amrmabdullah
  • nasser_md
  • vaulis11
  • pratik97
  • hamzzaijaz
  • nayabkhan
  • jcharrington