@opencc/opencc-linux-x64 1.3.2-next1

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,24 @@
1
+ # @opencc/opencc-linux-x64
2
+
3
+ Native OpenCC Node.js binary for `linux-x64`.
4
+
5
+ This package is installed automatically as an optional dependency of
6
+ `opencc`. Most users should install `opencc` instead of installing this
7
+ package directly.
8
+
9
+ ## Contents
10
+
11
+ ```text
12
+ prebuilds/linux-x64/opencc.node
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ```javascript
18
+ const binary = require('@opencc/opencc-linux-x64');
19
+ console.log(binary.binaryPath);
20
+ ```
21
+
22
+ ## License
23
+
24
+ Apache-2.0
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ const path = require('path');
2
+
3
+ const binaryPath = path.join(__dirname, "prebuilds/linux-x64/opencc.node");
4
+
5
+ module.exports = {
6
+ binaryPath,
7
+ };
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@opencc/opencc-linux-x64",
3
+ "version": "1.3.2-next1",
4
+ "description": "Conversion between Traditional and Simplified Chinese (linux-x64 binary)",
5
+ "license": "Apache-2.0",
6
+ "author": "Carbo Kuo <byvoid@byvoid.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/BYVoid/OpenCC.git"
10
+ },
11
+ "main": "index.js",
12
+ "os": [
13
+ "linux"
14
+ ],
15
+ "cpu": [
16
+ "x64"
17
+ ],
18
+ "files": [
19
+ "index.js",
20
+ "README.md",
21
+ "prebuilds/linux-x64/opencc.node"
22
+ ]
23
+ }
Binary file