@quark-client/quark 0.0.0-stage → 1.3.38

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/README.md +26 -2
  2. package/bin/quark.js +49 -0
  3. package/package.json +28 -4
package/README.md CHANGED
@@ -1,3 +1,27 @@
1
- # Temporary Holding Version
1
+ # @quark-client/quark
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A local-first, keyboard-driven HTTP client.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @quark-client/quark
9
+ ```
10
+
11
+ Or use with `npx`:
12
+
13
+ ```bash
14
+ npx @quark-client/quark
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ ```bash
20
+ quark
21
+ ```
22
+
23
+ For more information, visit [github.com/crazy-vedic/Quark](https://github.com/crazy-vedic/Quark).
24
+
25
+ ## License
26
+
27
+ MIT
package/bin/quark.js ADDED
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env node
2
+
3
+ const os = require('os');
4
+ const path = require('path');
5
+ const { execSync } = require('child_process');
6
+
7
+ const platform = os.platform();
8
+ const arch = os.arch();
9
+
10
+ let pkgName;
11
+ if (platform === 'darwin') {
12
+ if (arch === 'x64') pkgName = '@quark-client/quark-darwin-x64';
13
+ else if (arch === 'arm64') pkgName = '@quark-client/quark-darwin-arm64';
14
+ } else if (platform === 'linux') {
15
+ if (arch === 'x64') pkgName = '@quark-client/quark-linux-x64';
16
+ else if (arch === 'arm64') pkgName = '@quark-client/quark-linux-arm64';
17
+ } else if (platform === 'win32') {
18
+ if (arch === 'x64') pkgName = '@quark-client/quark-win32-x64';
19
+ }
20
+
21
+ if (!pkgName) {
22
+ console.error(`quark: unsupported platform (${platform} ${arch})`);
23
+ console.error('Quark is available for:');
24
+ console.error(' - Linux x64, arm64');
25
+ console.error(' - macOS x64, arm64');
26
+ console.error(' - Windows x64');
27
+ console.error('Install via: https://github.com/crazy-vedic/Quark#installation');
28
+ process.exit(1);
29
+ }
30
+
31
+ let binPath;
32
+ try {
33
+ const pkgPath = require.resolve(pkgName);
34
+ binPath = path.join(path.dirname(pkgPath), '..', 'bin', platform === 'win32' ? 'quark.exe' : 'quark');
35
+ } catch (err) {
36
+ console.error(`quark: platform package not found (${pkgName})`);
37
+ console.error('This may happen if npm installed the main package without the matching platform package.');
38
+ console.error('Try: npm install -g @quark-client/quark@latest');
39
+ process.exit(1);
40
+ }
41
+
42
+ try {
43
+ execSync(binPath + ' ' + process.argv.slice(2).join(' '), {
44
+ stdio: 'inherit',
45
+ shell: platform === 'win32',
46
+ });
47
+ } catch (err) {
48
+ process.exit(err.status || 1);
49
+ }
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "@quark-client/quark",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.3.38",
4
+ "description": "A local-first, keyboard-driven HTTP client",
5
+ "homepage": "https://github.com/crazy-vedic/Quark",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/crazy-vedic/Quark",
9
+ "directory": "npm/quark"
10
+ },
11
+ "license": "MIT",
12
+ "author": "Quark Contributors",
13
+ "bin": {
14
+ "quark": "bin/quark.js"
15
+ },
16
+ "files": [
17
+ "bin",
18
+ "README.md"
19
+ ],
20
+ "engines": {
21
+ "node": ">=16.0.0"
22
+ },
23
+ "optionalDependencies": {
24
+ "@quark-client/quark-linux-x64": "1.3.38",
25
+ "@quark-client/quark-linux-arm64": "1.3.38",
26
+ "@quark-client/quark-darwin-x64": "1.3.38",
27
+ "@quark-client/quark-darwin-arm64": "1.3.38",
28
+ "@quark-client/quark-win32-x64": "1.3.38"
29
+ }
30
+ }