@protoqol/directus-extension-formatted-numbers 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
- # Directus Extension: Formatted Numbers
1
+ ![Title card](https://cms.protoqol.nl/assets/6942cfbd-13b3-4a6c-9d85-fd67697295a8)
2
2
 
3
- A custom display extension for Directus that provides highly readable, localised, and abbreviated number formatting.
4
- Perfect for dashboards and tables where space is limited or where accurate numbers are not a must.
3
+ ![NPM](https://img.shields.io/npm/v/%40protoqol%2Fdirectus-extension-formatted-numbers)
4
+ ![NPM](https://img.shields.io/github/actions/workflow/status/protoqol/directus-extension-formatted-numbers/publish.yml)
5
5
 
6
6
  ## Features
7
7
 
@@ -11,6 +11,13 @@ Perfect for dashboards and tables where space is limited or where accurate numbe
11
11
  - **Full Value Tooltip**: Hover over any abbreviated number to see the exact, unformatted value in a tooltip.
12
12
  - **Customisable Appearance**: Add custom prefixes (like currency symbols) and suffixes.
13
13
 
14
+ ## Installation
15
+
16
+ There are a few different ways to install this extension:
17
+
18
+ - Via Directus Marketplace (recommended)
19
+ - Self-hosted: see [Directus Docs](https://directus.io/docs/self-hosting/including-extensions) to install extensions.
20
+
14
21
  ## Configuration Options
15
22
 
16
23
  When configuring a field to use the "Formatted numbers" display, you can customise the following options:
@@ -29,6 +36,8 @@ When configuring a field to use the "Formatted numbers" display, you can customi
29
36
 
30
37
  ## Examples
31
38
 
39
+ ![Preview](https://cms.protoqol.nl/assets/b368be2b-2acb-4e2a-be9e-228873ea651f)
40
+
32
41
  | Raw Value | Config | Output |
33
42
  |:----------------------|:------------------|:------------|
34
43
  | `1,234,567` | `en`, 2 decimals | `1.23M` |
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "license" : "MIT",
4
4
  "description" : "Directus extension: Format numbers in a easily readable way. With localisation available!",
5
5
  "icon" : "forward_media",
6
- "version" : "1.0.0",
6
+ "version" : "1.0.2",
7
7
  "keywords" : [
8
8
  "directus",
9
9
  "directus-extension",