Comparing version 0.18.0-alpha.0 to 0.18.0-alpha.1
{ | ||
"name": "pyodide", | ||
"version": "0.18.0-alpha.0", | ||
"version": "0.18.0-alpha.1", | ||
"description": "The Pyodide JavaScript package", | ||
@@ -11,2 +11,5 @@ "keywords": ["python", "webassembly"], | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/pyodide/pyodide/issues" | ||
}, | ||
"license": "Apache-2.0", | ||
@@ -13,0 +16,0 @@ "devDependencies": { |
# Pyodide Javascript package | ||
## Install | ||
<a href="https://www.npmjs.com/package/pyodide"><img src="https://img.shields.io/npm/v/pyodide" alt="npm"></a> | ||
```bash | ||
$ npm install -g pyodide | ||
``` | ||
## Usage | ||
@@ -17,9 +13,12 @@ | ||
```js | ||
pyodide_pkg = require("pyodide"); | ||
let pyodide = await pyodide_pkg.loadPyodide({ indexURL: "<path to the extracted folder>" }); | ||
let pyodide_pkg = await import('pyodide/pyodide.js'); | ||
let res = await pyodide.runPythonAsync("1+1"); | ||
let pyodide = await pyodide_pkg.loadPyodide({ indexURL: "<pyodide artifacts folder>" }); | ||
await pyodide.runPythonAsync('1+1') | ||
``` | ||
**Note**: To start node REPL with support for top level await, use `node --experimental-repl-await`. | ||
See the [documentation](https://pyodide.org/en/stable/) fore more details. | ||
@@ -26,0 +25,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
89570
1
3
39