Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

spacebar-shared

Shared Node.js helpers for the Polybius kiosk stack — consumed as a git dependency by spacebar-kiosk and spacebar-oms.

Contents

FileExports
tillweb-client.jsTillwebError, tillwebRequest(baseUrl, token, pathname, options)
http-helpers.jssendJson(res, status, payload), serveStatic(publicDir, req, res), MIME_TYPES

Usage

Already in package.json for kiosk and OMS:

"@spacebar/shared": "git+https://github.com/PolybiusBiotech/spacebar-shared.git"

After npm install, import as:

import{TillwebError}from"@spacebar/shared/tillweb-client.js";import{sendJson,serveStatic}from"@spacebar/shared/http-helpers.js";

Updating

  1. Edit the relevant .js file here in this repo
  2. Commit and push to main
  3. In each consuming package (spacebar-kiosk, spacebar-oms): npm install to pull the updated commit

About

Shared services for Kiosk API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages