{"id":13534591,"url":"https://github.com/gulpjs/parse-node-version","last_synced_at":"2025-10-19T11:31:18.138Z","repository":{"id":45985312,"uuid":"159728786","full_name":"gulpjs/parse-node-version","owner":"gulpjs","description":"Turn node's process.version into something useful.","archived":false,"fork":false,"pushed_at":"2021-11-22T23:21:43.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-10-29T12:58:58.769Z","etag":null,"topics":["gulp","nodejs","parser","version"],"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/gulpjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-11-29T21:20:20.000Z","updated_at":"2023-11-12T03:40:35.000Z","dependencies_parsed_at":"2022-09-15T11:00:44.327Z","dependency_job_id":null,"html_url":"https://github.com/gulpjs/parse-node-version","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fparse-node-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fparse-node-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fparse-node-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gulpjs%2Fparse-node-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gulpjs","download_url":"https://codeload.github.com/gulpjs/parse-node-version/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237116933,"owners_count":19258331,"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":["gulp","nodejs","parser","version"],"created_at":"2024-08-01T08:00:30.543Z","updated_at":"2025-10-19T11:31:13.093Z","avatar_url":"https://github.com/gulpjs.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# parse-node-version\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nTurn node's process.version into something useful.\n\n## Usage\n\n```js\nvar nodeVersion = require('parse-node-version')(process.version);\n\nconsole.log(\n  nodeVersion.major,\n  nodeVersion.minor,\n  nodeVersion.patch,\n  nodeVersion.pre,\n  nodeVersion.build\n);\n```\n\n## API\n\n### parseVersion(nodeVersionString)\n\nTakes a node version string (usually `process.version`) and returns an object with the `major`/`minor`/`patch` (which will all be numbers) and `pre`/`build` keys (which will always be a string). If the version doesn't contain any pre-release or build information, the properties will be returned as empty string.\n\n## License\n\nMIT\n\n\u003c!-- prettier-ignore-start --\u003e\n[downloads-image]: http://img.shields.io/npm/dm/parse-node-version.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/parse-node-version\n[npm-image]: http://img.shields.io/npm/v/parse-node-version.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/parse-node-version/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/workflow/status/gulpjs/parse-node-version/dev?style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/parse-node-version\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/parse-node-version/master.svg?style=flat-square\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fparse-node-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgulpjs%2Fparse-node-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgulpjs%2Fparse-node-version/lists"}