Skip to content

PolybiusBiotech/spacebar-shared

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

File Exports
tillweb-client.js TillwebError, tillwebRequest(baseUrl, token, pathname, options)
http-helpers.js sendJson(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

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors