If using straight npm (v11.10.0 or higher), you can just add to .npmrc in the project root:
min-release-age=5