@lacspace/humanize 1.0.1 → 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 -6
  2. package/package.json +50 -10
package/README.md CHANGED
@@ -52,18 +52,24 @@ Options let you switch to IEC units, long durations, more precision, Oxford comm
52
52
 
53
53
  ## Licensing
54
54
 
55
- This package is **free** under the **[Lacspace Free Licence](https://lacspace.com/licenses/lacspace-free-1.0)** — MIT-equivalent freedoms. Use it in personal and commercial projects at no cost; just keep the notice.
55
+ This package is **free** under the **[Lacspace Free Licence](https://lacspace.com/licenses/lacspace-free-1.0)** — permissive freedoms. Use it in personal and commercial projects at no cost; just keep the notice.
56
56
 
57
57
  Not every Lacspace package is free. We also offer **Commercial**, **Client-specific** and **Private** packages under separate terms — see the **[Lacspace Licence Centre](https://lacspace.com/licenses)**.
58
58
 
59
+ <!-- LACSPACE-DEV-PLATFORM -->
60
+
59
61
  ---
60
62
 
61
- <div align="center">
63
+ ## The Lacspace Developer Platform
62
64
 
63
- **Part of the Lacspace ecosystem zero-dependency, isomorphic TypeScript packages.**
65
+ `@lacspace/humanize` is part of **63 zero-dependency, isomorphic TypeScript packages** — one standard library for the modern web. Explore the ecosystem:
64
66
 
65
- [All packages ↗](https://lacspace.com/packages) · [npm org ↗](https://www.npmjs.com/org/lacspace) · [Licence Centre ↗](https://lacspace.com/licenses) · [GitHub ↗](https://github.com/lacspace/npm-packages)
67
+ - 📦 **This package, documented** https://developer.lacspace.com/packages/humanize
68
+ - 🗂️ **All 63 packages** — https://developer.lacspace.com/packages
69
+ - 🧭 **Developer handbook** — guides & runnable recipes — https://developer.lacspace.com/handbook
70
+ - 🧪 **Live playground** — run any package in your browser — https://developer.lacspace.com/playground
71
+ - 🖥️ **Finished app templates** — https://templates.lacspace.com
72
+ - 🚀 **Scaffold a full app** — `npm create lacspace-app@latest`
66
73
 
67
- </div>
74
+ Free under the **[Lacspace Free Licence](https://lacspace.com/licenses/lacspace-free-1.0)** — a permissive, free-to-use licence.
68
75
 
69
- <div align="center"><sub>Built with care by <a href="https://lacspace.com">Lacspace</a> · Lacspace Free Licence · <a href="https://github.com/lacspace/npm-packages">source</a></sub></div>
package/package.json CHANGED
@@ -1,21 +1,61 @@
1
1
  {
2
2
  "name": "@lacspace/humanize",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Turn machine values into human-readable text — bytes, durations, relative time, ordinals, plurals, compact numbers and grammatical lists. Zero-dependency, isomorphic.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
9
- "exports": { ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.cts", "default": "./dist/index.cjs" } } },
10
- "files": ["dist"],
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
11
24
  "sideEffects": false,
12
- "scripts": { "build": "tsup", "prepublishOnly": "npm run build" },
13
- "keywords": ["humanize", "pretty-bytes", "format-bytes", "duration", "relative-time", "time-ago", "ordinal", "pluralize", "compact-number", "format-number", "zero-dependency", "isomorphic", "typescript"],
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "prepublishOnly": "npm run build"
28
+ },
29
+ "keywords": [
30
+ "humanize",
31
+ "pretty-bytes",
32
+ "format-bytes",
33
+ "duration",
34
+ "relative-time",
35
+ "time-ago",
36
+ "ordinal",
37
+ "pluralize",
38
+ "compact-number",
39
+ "format-number",
40
+ "zero-dependency",
41
+ "isomorphic",
42
+ "typescript"
43
+ ],
14
44
  "author": "Lacspace <contact@lacspace.com>",
15
45
  "license": "SEE LICENSE IN LICENSE",
16
- "homepage": "https://lacspace.com/packages",
17
- "repository": { "type": "git", "url": "git+https://github.com/lacspace/npm-packages.git", "directory": "humanize" },
18
- "bugs": { "url": "https://github.com/lacspace/npm-packages/issues" },
19
- "engines": { "node": ">=18" },
20
- "publishConfig": { "access": "public" }
46
+ "homepage": "https://developer.lacspace.com/packages/humanize",
47
+ "repository": {
48
+ "type": "git",
49
+ "url": "git+https://github.com/lacspace/npm-packages.git",
50
+ "directory": "humanize"
51
+ },
52
+ "bugs": {
53
+ "url": "https://github.com/lacspace/npm-packages/issues"
54
+ },
55
+ "engines": {
56
+ "node": ">=18"
57
+ },
58
+ "publishConfig": {
59
+ "access": "public"
60
+ }
21
61
  }