@pacem/pacem-foundation 1.0.0-amaldi → 1.0.0-archimedes
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.
- package/README.md +44 -0
- package/dist/browser/pacem-foundation.js +1 -1
- package/dist/browser/pacem-foundation.min.js +1 -1
- package/dist/bundle/pacem-foundation.min.mjs +1 -1
- package/dist/bundle/pacem-foundation.mjs +1 -1
- package/dist/esm/array-extensions.js +1 -1
- package/dist/esm/arrays.js +1 -1
- package/dist/esm/blobs.js +1 -1
- package/dist/esm/browser.js +1 -1
- package/dist/esm/colors.js +1 -1
- package/dist/esm/dates.js +1 -1
- package/dist/esm/deepmerger.js +1 -1
- package/dist/esm/geom.js +1 -1
- package/dist/esm/history-svc.js +1 -1
- package/dist/esm/imaging.js +1 -1
- package/dist/esm/index-compile-markdown.js +1 -1
- package/dist/esm/index-compile.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/keygenerator.js +1 -1
- package/dist/esm/matrix2d.js +1 -1
- package/dist/esm/null-checker.js +1 -1
- package/dist/esm/number-extensions.js +1 -1
- package/dist/esm/numbers.js +1 -1
- package/dist/esm/rect.js +1 -1
- package/dist/esm/strings.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@pacem/pacem-foundation)
|
|
2
|
+
[](https://github.com/pacem-it/pacem/blob/main/LICENSE)
|
|
3
|
+
|
|
4
|
+
# @pacem/pacem-foundation
|
|
5
|
+
|
|
6
|
+
Framework-agnostic JavaScript/TypeScript utilities shared across the [Pacem JS](https://js.pacem.it) ecosystem: dates (`Dates`), arrays (`Arrays`), 2D geometry (`Point`, `Rect`, `Size`, `Matrix2D`), colors (`Colors`), strings (`Strings`), an undo/redo `HistoryService`, image/blob helpers (`Imaging`, `Blobs`), key generation (`Keys`), and a small `Compile.Markdown` parser. It also patches in a couple of `Number`/`Array` prototype extensions.
|
|
7
|
+
|
|
8
|
+
No DOM dependency, no custom elements — just plain utility classes. Every other `@pacem/pacem-*` package depends on this one.
|
|
9
|
+
|
|
10
|
+
Part of the [Pacem JS](https://js.pacem.it) ecosystem. Install [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem) instead if you want every package bundled together.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @pacem/pacem-foundation
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
### As an ES module
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { Dates, Point, Strings } from '@pacem/pacem-foundation';
|
|
24
|
+
|
|
25
|
+
Dates.isLeapYear(2024); // true
|
|
26
|
+
Strings.format('{0}, {1}!', 'Hello', 'world');
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### In the browser, without a bundler
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<script src="node_modules/@pacem/pacem-foundation/dist/browser/pacem-foundation.min.js"></script>
|
|
33
|
+
<script>
|
|
34
|
+
Pacem.Dates.isLeapYear(2024);
|
|
35
|
+
</script>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### TypeScript
|
|
39
|
+
|
|
40
|
+
Typings ship in `typings/index.d.ts` and are resolved automatically via the package's `exports` field — both for the ES module import style and for the ambient `Pacem` global used by the plain `<script>` include above.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
[Apache-2.0](https://github.com/pacem-it/pacem/blob/main/LICENSE) © [Pacem](https://pacem.it)
|
package/dist/esm/arrays.js
CHANGED
package/dist/esm/blobs.js
CHANGED
package/dist/esm/browser.js
CHANGED
package/dist/esm/colors.js
CHANGED
package/dist/esm/dates.js
CHANGED
package/dist/esm/deepmerger.js
CHANGED
package/dist/esm/geom.js
CHANGED
package/dist/esm/history-svc.js
CHANGED
package/dist/esm/imaging.js
CHANGED
package/dist/esm/index-iife.js
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/esm/keygenerator.js
CHANGED
package/dist/esm/matrix2d.js
CHANGED
package/dist/esm/null-checker.js
CHANGED
package/dist/esm/numbers.js
CHANGED
package/dist/esm/rect.js
CHANGED
package/dist/esm/strings.js
CHANGED