mohdel-thin-gate-linux-x64-gnu 0.92.0
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 +40 -0
- package/bin/mohdel-thin-gate +0 -0
- package/index.js +17 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# mohdel-thin-gate-linux-x64-gnu
|
|
2
|
+
|
|
3
|
+
Prebuilt `thin-gate` binary for mohdel — Linux x64 with glibc.
|
|
4
|
+
|
|
5
|
+
This package is **installed automatically** when you `npm install mohdel`
|
|
6
|
+
on a matching host (via npm's `optionalDependencies` + `os`/`cpu`/`libc`
|
|
7
|
+
filtering). It contains a single artifact: the `mohdel-thin-gate`
|
|
8
|
+
subprocess binary that mohdel's session pool spawns.
|
|
9
|
+
|
|
10
|
+
You should not depend on this package directly. Use the parent
|
|
11
|
+
`mohdel` package and let the optional-dependency machinery pick the
|
|
12
|
+
right prebuilt.
|
|
13
|
+
|
|
14
|
+
## What's in the package
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
bin/mohdel-thin-gate # stripped release binary (~3-4 MB)
|
|
18
|
+
index.js # exports the absolute binary path
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Invoking directly
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import thinGatePath from 'mohdel-thin-gate-linux-x64-gnu'
|
|
25
|
+
import { spawn } from 'node:child_process'
|
|
26
|
+
const proc = spawn(thinGatePath, ['--data', '/tmp/data.sock', ...])
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or as a CLI via npm's `bin` shim:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
npx mohdel-thin-gate --help
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Build provenance
|
|
36
|
+
|
|
37
|
+
Built in CI from the `rust/thin-gate` crate in
|
|
38
|
+
[mohdel](https://github.com/clbrge/mohdel) at tag `v0.90.0`. Target triple:
|
|
39
|
+
`x86_64-unknown-linux-gnu`. Profile: `[profile.release]` with
|
|
40
|
+
`strip = true`, `lto = "thin"`, `codegen-units = 1`.
|
|
Binary file
|
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prebuilt thin-gate binary resolver for Linux x64 (glibc).
|
|
3
|
+
*
|
|
4
|
+
* Consumers import the default export and spawn the resulting
|
|
5
|
+
* absolute path. This sub-package is installed automatically via
|
|
6
|
+
* the main `mohdel` package's `optionalDependencies` when the host
|
|
7
|
+
* matches `os=linux`, `cpu=x64`, `libc=glibc`.
|
|
8
|
+
*
|
|
9
|
+
* @module mohdel-thin-gate-linux-x64-gnu
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { fileURLToPath } from 'node:url'
|
|
13
|
+
|
|
14
|
+
const binaryUrl = new URL('./bin/mohdel-thin-gate', import.meta.url)
|
|
15
|
+
|
|
16
|
+
/** Absolute path to the prebuilt `mohdel-thin-gate` executable. */
|
|
17
|
+
export default fileURLToPath(binaryUrl)
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mohdel-thin-gate-linux-x64-gnu",
|
|
3
|
+
"version": "0.92.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Christophe Le Bars",
|
|
7
|
+
"email": "clb@toort.net"
|
|
8
|
+
},
|
|
9
|
+
"description": "Prebuilt thin-gate binary for mohdel (Linux x64, glibc). Installed automatically as an optional dependency of the mohdel npm package.",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "index.js",
|
|
12
|
+
"bin": {
|
|
13
|
+
"mohdel-thin-gate": "./bin/mohdel-thin-gate"
|
|
14
|
+
},
|
|
15
|
+
"os": [
|
|
16
|
+
"linux"
|
|
17
|
+
],
|
|
18
|
+
"cpu": [
|
|
19
|
+
"x64"
|
|
20
|
+
],
|
|
21
|
+
"libc": [
|
|
22
|
+
"glibc"
|
|
23
|
+
],
|
|
24
|
+
"files": [
|
|
25
|
+
"bin/mohdel-thin-gate",
|
|
26
|
+
"index.js",
|
|
27
|
+
"README.md"
|
|
28
|
+
],
|
|
29
|
+
"publishConfig": {
|
|
30
|
+
"registry": "https://registry.npmjs.org",
|
|
31
|
+
"access": "public",
|
|
32
|
+
"provenance": true
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/clbrge/mohdel.git"
|
|
37
|
+
}
|
|
38
|
+
}
|