Application Version

Add a script to get the application version.

Adding the script

To easily get the current package.json version into our application, we can add another script to package.json to write the version to a Python file. With that, we can directly import the semver version number into our application. Let’s add the version script entry in the script section of package.json:

Get hands-on with 1200+ tech skills courses.