{"id":16055521,"url":"https://github.com/uglow/upver","last_synced_at":"2026-04-24T23:31:20.477Z","repository":{"id":57387399,"uuid":"83393748","full_name":"uglow/upver","owner":"uglow","description":"NPM module to update the version string in a list of files","archived":false,"fork":false,"pushed_at":"2017-09-28T00:12:14.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-29T08:34:28.736Z","etag":null,"topics":["javascript","npm","version-control","versioning"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uglow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-28T05:35:24.000Z","updated_at":"2017-02-28T10:28:01.000Z","dependencies_parsed_at":"2022-09-07T13:01:33.912Z","dependency_job_id":null,"html_url":"https://github.com/uglow/upver","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/uglow/upver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fupver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fupver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fupver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fupver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uglow","download_url":"https://codeload.github.com/uglow/upver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uglow%2Fupver/sbom","scorecard":{"id":907320,"data":{"date":"2025-08-11","repo":{"name":"github.com/uglow/upver","commit":"3a3f56e195d7377d04e8adac244f384b6a73d76f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-24T17:48:30.339Z","repository_id":57387399,"created_at":"2025-08-24T17:48:30.339Z","updated_at":"2025-08-24T17:48:30.339Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32244994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["javascript","npm","version-control","versioning"],"created_at":"2024-10-09T02:09:15.841Z","updated_at":"2026-04-24T23:31:20.459Z","avatar_url":"https://github.com/uglow.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--[RM_HEADING]--\u003e\n# upver\n\n\u003c!--[]--\u003e\n\u003e Updates the version string within a list of files with a new version string, and `git add`s the changed files.\n\nThis module can be used with [corp-semantic-release](https://github.com/leonardoanalista/corp-semantic-release) or plain NPM to \nupdate the version number in a list of files when the package's version number is changed. See [Usage](#usage)\n\n\n\u003c!--[RM_BADGES]--\u003e\n[![NPM Version](https://img.shields.io/npm/v/upver.svg?style=flat-square)](http://npm.im/upver)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Coverage Status](https://coveralls.io/repos/github/uglow/upver/badge.svg?branch=master)](https://coveralls.io/github/uglow/upver?branch=master)\n[![Dependencies status](https://david-dm.org/uglow/upver/status.svg?theme=shields.io)](https://david-dm.org/uglow/upver#info=dependencies)\n[![Dev-dependencies status](https://david-dm.org/uglow/upver/dev-status.svg?theme=shields.io)](https://david-dm.org/uglow/upver#info=devDependencies)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n\n\u003c!--[]--\u003e\n\n\u003c!--[RM_INSTALL]--\u003e\n## Install\n\n1. `npm install upver`\n2. Create a YAML configuration file with this format (and note the `\u003c@VERSION@\u003e` placeholder for the *new* version string):\n  ```yaml\n  - file: path/to/file/relative/to/project/root.yml\n    search: Regex search for, e.g.: '\"version\": (\".+\")'\n    replacement: The tet to replace the search string. E.g. '\"version\": \"\u003c@VERSION@\u003e\"'\n  - file: ...\n    search: ...\n    replacement: ...\n  ```\n  \n3. Configure `package.json` to point to the location of the above configuration file:\n  ```\n    \"config\": {\n      \"upver\": \"path/to/upver/config.file.yml\"\n    }\n  ```\n\n\u003c!--[]--\u003e\n\n## Usage\n\nThis module gets the version number as an argument to the module, or from `package.json`.\n \nThere are three ways you could use `upver`:\n\n\u003cdetails\u003e\n\u003csummary\u003eOption 1 - Use with an NPM hook\u003c/summary\u003e\nYou can use NPM's built-in `(pre|post)version` [script-hook](https://docs.npmjs.com/cli/version) to run code before/just-after/after the version in `package.json` has been changed.\n\nThe files that are changed are `git add`ed in preparation for the changes being committed by `npm version` in subsequent steps.\n\nIn the following example, `upver` does *NOT* receive the version as an argument but queries `package.json` to get the bumped version.\n```json\n\"scripts\": {\n  \"version\": \"upver\"\n}\n```\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eOption 2 - Use with `corp-semantic-release`\u003c/summary\u003e\n`corp-semantic-release` provides a `--pre-commit \u003cNPM script\u003e` option. `upver` is passed the version \nnumber as an argument to the script.\n\nThe files that are changed are `git add`ed in preparation for the changes being committed `corp-semantic-release` in subsequent steps.\n\nBoth of the following examples are equivalent:\n```json\n\"scripts\": {\n  \"corp-release\": \"corp-semantic-release --pre-commit updateFiles\",\n  \"updateFiles\": \"upver\"\n}\n```\n```json\n\"scripts\": {\n  \"corp-release\": \"corp-semantic-release\",\n  \"version\": \"upver\"\n}\n```\n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n\u003csummary\u003eOption 3 - Use with `semantic-release`\u003c/summary\u003e\nThe [semantic-release](https://github.com/semantic-release/semantic-release) package provides hooks to allow `upver` to be called after\n`package.json` has been updated.\n\n**NOTE:** `semantic-release` does **not** commit file changes to git, but rather publishes the changes to NPM, then uploads a ZIP file to GitHub.\nThis means that the files versioned by `upver` will only contain the correct version when you install the module (not in git or on your\nfile-system). That's just how the `semantic-release` tool works.\n\nExample:\n```json\n\"scripts\": {\n  \"semantic-release\": \"semantic-release pre \u0026\u0026 upver \u0026\u0026 npm publish \u0026\u0026 semantic-release post\"\n}\n```\n\u003c/details\u003e\n\n## Testing\nAssuming the following NPM script:\n```bash\n\"scripts\": {\n  \"updateFiles\": \"upver\"\n}\n```\n... use the following command to test that everything works:\n\n```bash\nnpm run updateFiles -- 1.2.3\n```\nNote that `1.2.3` can be any version number string that matches this regular expression: `/^\\d+\\.\\d+\\.\\d+.*$`. This means `foo` and `1.2.non-digit` is\ninvalid, but `13312321.2312323.24323434-awsome-tag-name` is valid.\n\n\n\n\u003c!--[RM_CONTRIBUTING]--\u003e\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md).\n\n\n\u003c!--[]--\u003e\n\n\u003c!--[RM_LICENSE]--\u003e\n## License\n\nThis software is licensed under the MIT Licence. See [LICENSE](LICENSE).\n\n\u003c!--[]--\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Fupver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuglow%2Fupver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuglow%2Fupver/lists"}