Specify a package version
I would like to specify the version of a package that is required.
8
votes

-
jan.rupnik commented
I think this already works using the following syntax:
require('package@1.0.0') -
you can do require("package@version"). Here is an example: https://tonicdev.com/tonic/api-diff-example