JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 272
  • Score
    100M100P100Q86140F
  • License MIT

A tool to run Python 3 scripts platform independently in package scripts.

Package Exports

  • run-python3
  • run-python3/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (run-python3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

run-python3

npm version

The name of the Python 3 executable is python on Windows, but python3 everywhere else (don't ask why). This makes it a hell to run a Python 3 script from package.json scripts. This package introduces the run-python3 command that runs the correct Python 3 executable on all platforms.

How to use?

Install the package.

npm install run-python3

Use it in package.json scripts:

...
"scripts": {
    "command": "run-python3 my_cool_python_script.py"
},
...