@datamitsu/datamitsu-darwin-x64 0.0.13 → 0.0.15

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 (3) hide show
  1. package/datamitsu +0 -0
  2. package/package.json +1 -1
  3. package/README.md +0 -257
package/datamitsu CHANGED
Binary file
package/package.json CHANGED
@@ -14,5 +14,5 @@
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/datamitsu/datamitsu.git"
16
16
  },
17
- "version": "0.0.13"
17
+ "version": "0.0.15"
18
18
  }
package/README.md DELETED
@@ -1,257 +0,0 @@
1
- # datamitsu
2
-
3
- <p align="center">
4
- <img src="https://datamitsu.com/img/logo.png" alt="datamitsu" width="400" />
5
- </p>
6
-
7
- <p align="center">
8
- <a href="https://www.npmjs.com/package/@datamitsu/datamitsu"><img src="https://img.shields.io/npm/v/@datamitsu/datamitsu" alt="npm"></a>
9
- <a href="https://pypi.org/project/datamitsu/"><img src="https://img.shields.io/pypi/v/datamitsu" alt="PyPI"></a>
10
- <a href="https://rubygems.org/gems/datamitsu"><img src="https://img.shields.io/gem/v/datamitsu" alt="Gem"></a>
11
- <a href="https://github.com/datamitsu/datamitsu/actions/workflows/pr-checks.yml"><img src="https://github.com/datamitsu/datamitsu/actions/workflows/pr-checks.yml/badge.svg" alt="CI"></a>
12
- <a href="https://codecov.io/gh/datamitsu/datamitsu"><img src="https://codecov.io/gh/datamitsu/datamitsu/graph/badge.svg" alt="codecov"></a>
13
- <a href="https://coveralls.io/github/datamitsu/datamitsu?branch=main"><img src="https://coveralls.io/repos/github/datamitsu/datamitsu/badge.svg?branch=main" alt="Coverage Status"></a>
14
- <a href="https://goreportcard.com/report/github.com/datamitsu/datamitsu"><img src="https://goreportcard.com/badge/github.com/datamitsu/datamitsu?v=2" alt="Go Report Card"></a>
15
- <a href="https://scorecard.dev/viewer/?uri=github.com/datamitsu/datamitsu"><img src="https://api.securityscorecards.dev/projects/github.com/datamitsu/datamitsu/badge" alt="OpenSSF Scorecard"></a>
16
- <a href="https://github.com/datamitsu/datamitsu/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
17
- </p>
18
-
19
- > Your toolchain deserves a home.
20
-
21
- > **Alpha**: This project is in alpha. The configuration API is not yet stabilized and may change between versions.
22
-
23
- A configuration management and binary distribution tool for development tools. It downloads, verifies (SHA-256), and manages binaries and runtime-managed tools across platforms using JavaScript-powered configuration.
24
-
25
- - **Secure.** Mandatory SHA-256 verification for all downloads. No exceptions.
26
- - **Isolated.** Per-app environments with content-addressable storage.
27
- - **Reproducible.** Cached binaries, lock files, and platform-specific builds.
28
-
29
- 📖 [Documentation](https://datamitsu.com)
30
-
31
- ## Install
32
-
33
- With **npm**:
34
-
35
- ```bash
36
- npm install @datamitsu/datamitsu
37
- ```
38
-
39
- With **Go** (>= 1.23):
40
-
41
- ```bash
42
- go install github.com/datamitsu/datamitsu@latest
43
- ```
44
-
45
- **[Installation guide](https://datamitsu.com/docs/getting-started/installation)** with more installation options.
46
-
47
- ## Usage
48
-
49
- Initialize your toolchain and run checks:
50
-
51
- #### TL;DR
52
-
53
- ```bash
54
- # Initialize tools (downloads binaries, creates .datamitsu/ configs)
55
- npx datamitsu init
56
-
57
- # Run fix then lint
58
- npx datamitsu check
59
-
60
- # Or run separately
61
- npx datamitsu fix
62
- npx datamitsu lint
63
-
64
- # Execute a managed binary
65
- npx datamitsu exec shellcheck script.sh
66
- ```
67
-
68
- #### More details
69
-
70
- - [**Quick Start Guide**](https://datamitsu.com/docs/getting-started/quick-start)
71
- - [**CLI Commands**](https://datamitsu.com/docs/reference/cli-commands)
72
- - [**Configuration API**](https://datamitsu.com/docs/reference/configuration-api)
73
-
74
- ## Why datamitsu
75
-
76
- - ### **Security-first binary management**
77
-
78
- All binaries require SHA-256 verification. No hash, no download. [docs](https://datamitsu.com/docs/guides/architecture)
79
-
80
- ```javascript
81
- export function getConfig(prev) {
82
- return {
83
- ...prev,
84
- apps: {
85
- hadolint: {
86
- binaries: {
87
- linux: {
88
- amd64: {
89
- glibc: {
90
- url: "https://github.com/hadolint/hadolint/releases/download/v2.14.0/hadolint-linux-x86_64",
91
- hash: "6bf226944684f56c84dd014e8b979d27425c0148f61b3bd99bcc6f39e9dc5a47",
92
- contentType: "binary",
93
- },
94
- },
95
- },
96
- },
97
- },
98
- },
99
- };
100
- }
101
- ```
102
-
103
- - ### **Isolated environments per app**
104
-
105
- Each app gets its own environment with content-addressable storage. Multiple versions coexist. [docs](https://datamitsu.com/docs/guides/runtime-management)
106
-
107
- ```javascript
108
- export function getConfig(prev) {
109
- return {
110
- ...prev,
111
- apps: {
112
- eslint: {
113
- fnm: {
114
- packageName: "eslint",
115
- version: "10.0.0",
116
- },
117
- // Cached at: .apps/fnm/eslint/{hash}/node_modules
118
- },
119
- "eslint-legacy": {
120
- fnm: {
121
- packageName: "eslint",
122
- version: "9.17.0",
123
- },
124
- // Cached at: .apps/fnm/eslint-legacy/{hash}/node_modules
125
- },
126
- },
127
- };
128
- }
129
- ```
130
-
131
- - ### **Managed configuration distribution**
132
-
133
- Distribute configs from runtime-managed apps via symlinks. [docs](https://datamitsu.com/docs/guides/managed-configs)
134
-
135
- ```javascript
136
- export function getConfig(prev) {
137
- return {
138
- ...prev,
139
- apps: {
140
- "my-eslint-config": {
141
- fnm: {
142
- packageName: "@myorg/eslint-config",
143
- version: "2.0.0",
144
- },
145
- links: {
146
- "eslint-config": "dist/eslint.config.js",
147
- },
148
- },
149
- },
150
- };
151
- }
152
- ```
153
-
154
- Creates `.datamitsu/` with symlinks:
155
-
156
- ```
157
- .datamitsu/
158
- └── eslint-config → ../.apps/fnm/my-eslint-config/{hash}/dist/eslint.config.js
159
- ```
160
-
161
- - ### **Layered configuration**
162
-
163
- Chain configs with inheritance and remote config support. [docs](https://datamitsu.com/docs/guides/configuration-layers)
164
-
165
- ```javascript
166
- // datamitsu.config.ts
167
- export function getRemoteConfigs() {
168
- return [
169
- {
170
- url: "https://example.com/base-config.ts",
171
- hash: "sha256:abc123...",
172
- },
173
- ];
174
- }
175
-
176
- export function getConfig(prev) {
177
- return {
178
- ...prev,
179
- apps: {
180
- ...prev.apps,
181
- // Override or add apps here
182
- },
183
- };
184
- }
185
- ```
186
-
187
- - ### **JavaScript configuration engine**
188
-
189
- Full goja runtime with built-in APIs for path manipulation, formatting (YAML/TOML/INI), and hashing. [docs](https://datamitsu.com/docs/reference/configuration-api)
190
-
191
- ```javascript
192
- export function getConfig(prev) {
193
- return {
194
- ...prev,
195
- init: {
196
- "lefthook.yaml": {
197
- content: (context) => {
198
- const existing = YAML.parse(context.existingContent || "");
199
- return YAML.stringify({
200
- ...existing,
201
- "pre-commit": {
202
- commands: {
203
- "datamitsu-fix": { run: "datamitsu fix" },
204
- },
205
- },
206
- });
207
- },
208
- },
209
- },
210
- };
211
- }
212
- ```
213
-
214
- - ### **Programmatic API**
215
-
216
- If you need to integrate datamitsu into your build scripts or tools, a type-safe JavaScript API is available. [docs](https://datamitsu.com/docs/reference/js-api)
217
-
218
- ```javascript
219
- import { fix, lint } from "@datamitsu/datamitsu";
220
-
221
- await fix({ files: ["src/generated.ts"] });
222
- const result = await lint({ explain: "json" });
223
- ```
224
-
225
- ---
226
-
227
- ## Documentation
228
-
229
- Full documentation is available at [https://datamitsu.com](https://datamitsu.com)
230
-
231
- **Getting Started:**
232
-
233
- - [Installation](https://datamitsu.com/docs/getting-started/installation)
234
- - [Quick Start Guide](https://datamitsu.com/docs/getting-started/quick-start)
235
- - [About datamitsu](https://datamitsu.com/docs/about) — Why datamitsu exists
236
-
237
- **Guides:**
238
-
239
- - [Runtime Management](https://datamitsu.com/docs/guides/runtime-management)
240
- - [Managed Configs](https://datamitsu.com/docs/guides/managed-configs)
241
- - [Configuration Layers](https://datamitsu.com/docs/guides/configuration-layers)
242
- - [Architecture](https://datamitsu.com/docs/guides/architecture)
243
-
244
- **Reference:**
245
-
246
- - [CLI Commands](https://datamitsu.com/docs/reference/cli-commands)
247
- - [Configuration API](https://datamitsu.com/docs/reference/configuration-api)
248
- - [JavaScript API](https://datamitsu.com/docs/reference/js-api)
249
- - [Comparison with mise/moon/Nx](https://datamitsu.com/docs/reference/comparison)
250
-
251
- ## Support datamitsu
252
-
253
- ❤️ [Sponsor datamitsu](https://datamitsu.com/sponsor)
254
-
255
- ## License
256
-
257
- MIT