Format

Formatting helpers for lit-material apps: bytes, compact numbers, durations, CPU, and Kubernetes quantities ("512Mi", "500m"). Locale-aware, no dependencies.

  • 929 B gzipped
  • @lit-material/format 0.1.0
  • Renders on the server

Example

Install

npm install @lit-material/format @lit-material/tokens
import "@lit-material/format";

Link @lit-material/tokens/css/index.css once per page for the colour, type and shape tokens. Install guide

API

Source on GitHub npm