{"id":17355141,"url":"https://github.com/zephinzer/version-reporter","last_synced_at":"2025-03-27T14:17:02.532Z","repository":{"id":79926705,"uuid":"130071857","full_name":"zephinzer/version-reporter","owner":"zephinzer","description":"Version reporter module","archived":false,"fork":false,"pushed_at":"2018-04-18T15:05:44.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T18:27:10.173Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zephinzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-18T14:06:09.000Z","updated_at":"2018-04-18T15:05:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"17b4ea0f-0d57-47cf-9e9c-197a817175af","html_url":"https://github.com/zephinzer/version-reporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fversion-reporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fversion-reporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fversion-reporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephinzer%2Fversion-reporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephinzer","download_url":"https://codeload.github.com/zephinzer/version-reporter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858880,"owners_count":20684062,"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","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-10-15T17:42:27.445Z","updated_at":"2025-03-27T14:17:02.515Z","avatar_url":"https://github.com/zephinzer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Version Reporter\nA Node component for retrieving version of the current application.\n\n## Usage\n\n```javascript\nconst versionReporter = require('version-reporter');\n\n// get the latest git tag associated with current commit\nversionReporter.getLatestGitTag().then((gitTag) =\u003e console.info(gitTag));\n\n// get the latest\nversionReporter.getLatestGitCommit().then((gitCommitHash) =\u003e console.info(gitCommitHash));\n\n// get the version from a file relative to the process.cwd()\nversionReporter.getVersionFromFile('./path/to/.versionfile').then((version) =\u003e console.info(version));\n\n// get the version from the package.json file relative to the process.cwd()\nversionReporter.getVersionFromPackageJson().then((packageJsonVersion) =\u003e console.info(packageJsonVersion));\n```\n\n## Installation\n\n```bash\nnpm install version-reporter;\n```\n\nLink to NPM package: https://www.npmjs.com/package/version-reporter\n\n## Development\n\nFork this, make your changes and submit a pull request.\n\nRun tests with `npm test` and `npm run lint`.\n\n## License\n\nCopyright 2018 [@zephinzer](https://github.com/zephinzer)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephinzer%2Fversion-reporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephinzer%2Fversion-reporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephinzer%2Fversion-reporter/lists"}