@stacksjs/env 0.58.47

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 ADDED
@@ -0,0 +1,71 @@
1
+ # Stacks Objects
2
+
3
+ Easily work with objects.
4
+
5
+ ## โ˜˜๏ธ Features
6
+
7
+ - Access to Laravel-like Collections API
8
+ - Other object helpers
9
+
10
+ ## ๐Ÿค– Usage
11
+
12
+ ```bash
13
+ bun install -d @stacksjs/objects
14
+ ```
15
+
16
+ Now, you can easily access it in your project:
17
+
18
+ ```js
19
+ import { collect } from '@stacksjs/objects'
20
+
21
+ const collection = collect([{
22
+ name: 'My story',
23
+ pages: 176,
24
+ }, {
25
+ name: 'Fantastic Beasts and Where to Find Them',
26
+ pages: 1096,
27
+ }])
28
+
29
+ console.log(collection.avg('pages')) // 636
30
+ ```
31
+
32
+ To view the full documentation, please visit [https://stacksjs.org/objects](https://stacksjs.org/objects).
33
+
34
+ ## ๐Ÿงช Testing
35
+
36
+ ```bash
37
+ bun test
38
+ ```
39
+
40
+ ## ๐Ÿ“ˆ Changelog
41
+
42
+ Please see our [releases](https://github.com/stacksjs/stacks/releases) page for more information on what has changed recently.
43
+
44
+ ## ๐Ÿšœ Contributing
45
+
46
+ Please review the [Contributing Guide](https://github.com/stacksjs/contributing) for details.
47
+
48
+ ## ๐Ÿ Community
49
+
50
+ For help, discussion about best practices, or any other conversation that would benefit from being searchable:
51
+
52
+ [Discussions on GitHub](https://github.com/stacksjs/stacks/discussions)
53
+
54
+ For casual chit-chat with others using this package:
55
+
56
+ [Join the Stacks Discord Server](https://discord.gg/stacksjs)
57
+
58
+ ## ๐Ÿ™๐Ÿผ Credits
59
+
60
+ Many thanks to the following core technologies & people who have contributed to this package:
61
+
62
+ - [Collect.js](https://github.com/ecrmnn/collect.js)
63
+ - [Laravel](https://laravel.com/)
64
+ - [Chris Breuer](https://github.com/chrisbbreuer)
65
+ - [All Contributors](../../contributors)
66
+
67
+ ## ๐Ÿ“„ License
68
+
69
+ The MIT License (MIT). Please see [LICENSE](https://github.com/stacksjs/stacks/tree/main/LICENSE.md) for more information.
70
+
71
+ Made with ๐Ÿ’™
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@stacksjs/env",
3
+ "type": "module",
4
+ "version": "0.58.47",
5
+ "description": "Stacks env helper methods.",
6
+ "author": "Chris Breuer",
7
+ "license": "MIT",
8
+ "funding": "https://github.com/sponsors/chrisbbreuer",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/env#readme",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/stacksjs/stacks.git",
13
+ "directory": "./storage/framework/core/env"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/stacksjs/stacks/issues"
17
+ },
18
+ "keywords": [
19
+ "env",
20
+ "utilities",
21
+ "functions",
22
+ "stacks"
23
+ ],
24
+ "contributors": [
25
+ "Chris Breuer <chris@stacksjs.org>"
26
+ ],
27
+ "exports": {
28
+ ".": {
29
+ "bun": "./src/index.ts",
30
+ "import": "./dist/index.js"
31
+ },
32
+ "./*": {
33
+ "bun": "./*",
34
+ "import": "./dist/*"
35
+ }
36
+ },
37
+ "files": [
38
+ "README.md",
39
+ "src"
40
+ ],
41
+ "scripts": {
42
+ "build": "bun --bun build.ts",
43
+ "typecheck": "bun --bun tsc --noEmit",
44
+ "prepublishOnly": "bun --bun run build"
45
+ },
46
+ "dependencies": {
47
+ "@stacksjs/validation": "latest",
48
+ "fs-extra": "^11.2.0"
49
+ },
50
+ "devDependencies": {
51
+ "@stacksjs/development": "workspace:*",
52
+ "@stacksjs/path": "workspace:*"
53
+ }
54
+ }