When using Npm, you can easily access package information from the package.json
file by using a helpful prefix. For example, you can extract the react version with $npm_package_dependencies_react
to find the current version of react listed in the file.
However, accessing information for packages listed with an @
prefix, like @types/react
, can be a bit trickier. I've tried escaping special characters with no success. Does anyone have any suggestions on how to access this information using the same method?