onnxjs-node
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -9,4 +9,4 @@ "use strict"; | ||
}; | ||
var onnxjs = __importStar(require("onnxjs")); | ||
var os = __importStar(require("os")); | ||
var onnxjs = __importStar(require("onnxjs")); | ||
// check if Node.js | ||
@@ -19,3 +19,3 @@ if (typeof process !== 'undefined' && process && process.release && process.release.name === 'node') { | ||
// check if Linux or Windows | ||
if (['win32', 'linux'].indexOf(os.platform()) === -1) { | ||
if (['win32', 'linux', 'darwin'].indexOf(os.platform()) === -1) { | ||
throw new Error("onnxruntime does not support platform '" + os.platform() + "'"); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "onnxjs-node", | ||
"description": "", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"author": "fs-eire", | ||
"main": "./lib/index.js", | ||
"types": "./types/lib/index.d.ts", | ||
"scripts": { | ||
"install": "node-pre-gyp install --fallback-to-build=false || npm run build", | ||
"prepare": "tsc", | ||
"build": "tsc && node ./scripts/build", | ||
@@ -24,3 +24,5 @@ "buildd": "tsc && node ./scripts/build --debug", | ||
"remote_path": "v{version}", | ||
"napi_versions": [3] | ||
"napi_versions": [ | ||
3 | ||
] | ||
}, | ||
@@ -50,3 +52,3 @@ "repository": { | ||
"rimraf": "^2.6.3", | ||
"typescript": "^3.1.6" | ||
"typescript": "^3.3.3333" | ||
}, | ||
@@ -53,0 +55,0 @@ "dependencies": { |
@@ -0,1 +1,4 @@ | ||
[![npm version](https://badge.fury.io/js/onnxjs-node.svg)](https://badge.fury.io/js/onnxjs-node) | ||
[![GitHub version](https://badge.fury.io/gh/fs-eire%2Fonnxjs-node.svg)](https://badge.fury.io/gh/fs-eire%2Fonnxjs-node) | ||
# onnxjs-node | ||
@@ -13,6 +16,9 @@ **onnxjs-node** is a Node.js binding of [ONNXRuntime](https://github.com/Microsoft/onnxruntime) that works seamlessly with [ONNX.js](https://github.com/Microsoft/onnxjs). | ||
## Supported Platforms | ||
- Windows x64 CPU NAPI_v3 | ||
- Linux x64 CPU NAPI_v3 | ||
- Windows x64 GPU NAPI_v3 | ||
- Linux x64 GPU NAPI_v3 | ||
OS |Arch |CPU/GPU |NAPI version |ONNXRuntime version | ||
---------|-----|--------|-------------|-------------------- | ||
Windows | x64 | CPU | v3 | v0.2.1 | ||
Linux | x64 | CPU | v3 | v0.2.1 | ||
macOS | x64 | CPU | v3 | v0.2.1 | ||
Windows | x64 | GPU | v3 | v0.2.1 | ||
Linux | x64 | GPU | v3 | v0.2.1 | ||
@@ -19,0 +25,0 @@ ## Usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15290
62