{"id":20549527,"url":"https://github.com/akullpp/pjson-versionizer","last_synced_at":"2026-04-20T02:33:46.849Z","repository":{"id":30616011,"uuid":"34171378","full_name":"akullpp/pjson-versionizer","owner":"akullpp","description":"Sets the versions of all dependencies inside the package.json to match the versions of the installed dependencies","archived":false,"fork":false,"pushed_at":"2015-05-28T20:39:35.000Z","size":268,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-06T05:33:11.152Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akullpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-18T15:38:14.000Z","updated_at":"2023-09-16T21:24:45.000Z","dependencies_parsed_at":"2022-08-03T15:14:44.035Z","dependency_job_id":null,"html_url":"https://github.com/akullpp/pjson-versionizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/akullpp/pjson-versionizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akullpp%2Fpjson-versionizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akullpp%2Fpjson-versionizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akullpp%2Fpjson-versionizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akullpp%2Fpjson-versionizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akullpp","download_url":"https://codeload.github.com/akullpp/pjson-versionizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akullpp%2Fpjson-versionizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27558645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-07T02:00:07.896Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:18:19.974Z","updated_at":"2025-12-07T02:02:27.223Z","avatar_url":"https://github.com/akullpp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pjson-versionizer\n\n[![Build Status](https://travis-ci.org/akullpp/pjson-versionizer.svg?branch=master)](https://travis-ci.org/akullpp/pjson-versionizer) [![npm stable version](https://img.shields.io/npm/v/pjson-versionizer.svg)](https://npmjs.org/package/pjson-versionizer)\n\nSets the versions of all dependencies in the `package.json` to match the versions of the installed dependencies located in the `node_modules`.\n\n## Installation\n\n`npm i -g pjson-versionizer`\n\n## Usage\n\n  pjv [options]\n\n    Options:\n\n      -h, --help         output usage information\n      -V, --version      output the version number\n      --ddeps            Only sets development dependencies\n      --deps             Only sets production dependencies\n      --prefix [semver]  Semver prefix for all dependencies\n      --dry              Only logs to console\n\n## Motivation\n\nUse case for me were scenarios in which [npm-check-update](https://github.com/tjunnone/npm-check-updates) didn't work. For example if you were trying to update the `package.json` to replace all asterisks `*` with the actual version:\n\n    dependencies: {\n        \"a\": \"*\"\n    }\n\nbecomes\n\n    dependencies: {\n       \"a\": \"^1.0.0\"\n    }\n\nAlso it is useful to update the version to the latest installed made available by semver, e.g. `^1.0.0` to `^1.1.0`. Or to set the semver of all packages via the prefix flag.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakullpp%2Fpjson-versionizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakullpp%2Fpjson-versionizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakullpp%2Fpjson-versionizer/lists"}