Added helper to generated a package.json.