@yydb/yydb-darwin-arm64 0.0.2 → 0.0.4
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 +15 -19
- package/index.js +4 -0
- package/lib/yydb-darwin-arm64.node +0 -0
- package/package.json +8 -2
- package/yydb.darwin-arm64.node +0 -0
package/README.md
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
# `@yydb/yydb-darwin-arm64`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prebuilt native binding for Apple Silicon macOS (`darwin/arm64`). **Not a public import target.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
[`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb)
|
|
7
|
-
package rather than depend on this platform package directly.
|
|
5
|
+
Pulled automatically when installing [`@yydb/yydb`](https://www.npmjs.com/package/@yydb/yydb) on matching hosts. Intel
|
|
6
|
+
Macs use [`@yydb/yydb-darwin-x64`](https://www.npmjs.com/package/@yydb/yydb-darwin-x64).
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
## Example
|
|
9
|
+
|
|
10
|
+
Application code imports the main package only:
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import {Database} from "@yydb/yydb";
|
|
14
|
+
|
|
15
|
+
const db = await Database.open("app.yydb");
|
|
16
|
+
console.log(await db.info());
|
|
17
|
+
await db.close();
|
|
11
18
|
```
|
|
12
19
|
|
|
13
|
-
The
|
|
20
|
+
The CLI also ships from `@yydb/yydb`:
|
|
14
21
|
|
|
15
22
|
```text
|
|
16
|
-
npx yydb --help
|
|
17
23
|
npx yydb serve app.yydb --bind 127.0.0.1:7700
|
|
18
24
|
```
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|-------------|---------------------------------------|
|
|
22
|
-
| npm package | `@yydb/yydb-darwin-arm64` |
|
|
23
|
-
| Platform | macOS, Apple Silicon (`darwin/arm64`) |
|
|
24
|
-
| Binding | `yydb.darwin-arm64.node` |
|
|
25
|
-
|
|
26
|
-
For Intel Macs, use [`@yydb/yydb-darwin-x64`](https://www.npmjs.com/package/@yydb/yydb-darwin-x64).
|
|
27
|
-
|
|
28
|
-
[YYDB overview](https://github.com/yy-database/yydb.rs) ·
|
|
29
|
-
[Releases](https://github.com/yy-database/yydb.rs/releases) ·
|
|
30
|
-
[License](https://github.com/yy-database/yydb.rs/blob/dev/License.md)
|
|
26
|
+
[YYDB overview](https://github.com/yy-database/yydb.rs)
|
package/index.js
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yydb/yydb-darwin-arm64",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "YYDB native binding for Apple Silicon macOS; installed automatically by @yydb/yydb",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js"
|
|
10
|
+
},
|
|
6
11
|
"os": [
|
|
7
12
|
"darwin"
|
|
8
13
|
],
|
|
@@ -10,7 +15,8 @@
|
|
|
10
15
|
"arm64"
|
|
11
16
|
],
|
|
12
17
|
"files": [
|
|
13
|
-
"
|
|
18
|
+
"index.js",
|
|
19
|
+
"lib",
|
|
14
20
|
"README.md"
|
|
15
21
|
],
|
|
16
22
|
"repository": {
|
package/yydb.darwin-arm64.node
DELETED
|
Binary file
|