This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Description
It would be nice if there was a way to automatically install the correct nodejs version by extracting the version from a projects package.json file. I'm thinking about something like this:
nodejs::project { '/path/to/some/project': }
which would expand to:
nodejs::local { '/path/to/some/project':
version => $version_from_package_json
}
That way I could keep the source of truth in the project repo, because there are other tools which read the version from the package.json file (e.g. when deploying to heroku).