onnxruntime/js/common
Yulong Wang f274bbb0c8
[js] add API that allows to get package version (#16207)
### Description

Add an API for users to get version of current package. example usage:

```js
import { env } from 'onnxruntime-node';

console.log(env.versions.node);  // output "1.16.0"
```

```js
import { env } from 'onnxruntime-web';

console.log(env.versions.web);  // output "1.16.0"
console.log(env.versions.common);  // output "1.16.0"
console.log(env.versions.node);  // output "undefined"
```

#16156
2023-06-09 16:18:53 -07:00
..
lib [js] add API that allows to get package version (#16207) 2023-06-09 16:18:53 -07:00
.gitignore [js/api] add typedoc and revise comments (#9077) 2021-09-20 17:54:46 -07:00
.npmignore [js/api] add typedoc and revise comments (#9077) 2021-09-20 17:54:46 -07:00
package-lock.json Update VERSION_NUMBER (#15773) 2023-05-03 15:07:34 -07:00
package.json Update VERSION_NUMBER (#15773) 2023-05-03 15:07:34 -07:00
README.md Replace 'master' branch ref to 'main' in the code (#12547) 2022-08-22 10:48:12 -07:00
tsconfig.json [web] utility functions for tensor<->image conversion in ORT web (#13603) 2023-01-12 09:05:18 -08:00
typedoc.json [js/api] add typedoc and revise comments (#9077) 2021-09-20 17:54:46 -07:00
webpack.config.js [js/web] optimize bundle file size (#9817) 2021-11-22 13:56:55 -08:00

ONNX Runtime JavaScript API

ONNX Runtime JavaScript API is a unified API for all JavaScript usages. It's dependency of the following NPM packages:

  • onnxruntime-node
  • onnxruntime-web
  • onnxruntime-react-native

This package (onnxruntime-common) is not designed for using directly. Please consider to install one of the NPM packages above according to target platform.

License

License information can be found here.