{"name":"available-versions","version":"0.14.25","keywords":["available","check","npm","registry","release","releases","version","versions"],"author":{"name":"Gleb Bahmutov","email":"gleb.bahmutov@gmail.com"},"license":"MIT","_id":"available-versions@0.14.25","contributors":[],"homepage":"https://github.com/bahmutov/available-versions","bugs":{"url":"https://github.com/bahmutov/available-versions/issues"},"bin":{"vers":"bin/available.js","releases":"bin/available.js","versions":"bin/available.js","available":"bin/available.js"},"dist":{"shasum":"5af98ec34141555370dec99d4b3a5879e4934069","tarball":"http://registry-npm.ywwl.com/available-versions/download/available-versions-0.14.25.tgz","fileCount":13,"integrity":"sha512-+Chrwnwuttwkso3itsKWMBl6bmnXodvEmYz1MIkulhNvsWwq/DTSf4KzyRLzvRLBYQOdDSQc7ELWn+YWvAXSiA==","signatures":[{"sig":"MEYCIQC1WZ/bYI83gnHMz49Cykcfhaeg9BuXtNW+WjsuWzaNSAIhALN1gjNcL7G+YivuPfFOmj67MNQoi76CAXHcjreWV5hG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":29751,"size":9628,"noattachment":false,"key":"/available-versions/-/available-versions-0.14.25.tgz"},"main":"src/available.js","config":{"pre-git":{"pre-push":["npm run size"],"commit-msg":"simple","post-merge":[],"pre-commit":["npm test","npm run example","npm run example-scoped","npm run example-standard"],"post-commit":[]},"next-update":{"skip":["q"]}},"engines":{"node":">= 4.0.0"},"gitHead":"5ab9855b879288db8a2200839329ea7adda868a3","release":{"branch":"master","analyzeCommits":"simple-commit-message"},"scripts":{"deps":"npm audit --report --omit dev","lint":"standard --verbose --fix src/*.js src/test/*.js bin/*.js","size":"t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";","test":"npm run rocha && grunt && npm run unit","unit":"rocha src/test/*.js","build":"grunt","rocha":"rocha src/*-spec.js","commit":"git-issues && commit-wizard","issues":"git-issues","example":"node bin/available.js manpm","pretest":"npm run lint","example-tags":"node bin/available.js publish-tag","example-babel":"node bin/available.js babel@6.1.15","example-gitlab":"DEBUG=vers as-a gitlab node bin/available.js semantic-release-gitlab","example-scoped":"Q_DEBUG=1 node bin/available.js @bahmutov/parse-github-repo-url","example-standard":"node bin/available.js standard","semantic-release":"semantic-release","example-not-found":"node bin/available.js not-found-module-name"},"_npmUser":{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"},"repository":{"url":"git+https://github.com/bahmutov/available-versions.git","type":"git"},"_npmVersion":"8.19.4","description":"Returns a promise with new versions higher than given for a npm module","directories":{},"_nodeVersion":"20.18.0","dependencies":{"q":"1.5.1","axios":"1.8.1","debug":"4.3.4","lodash":"4.17.21","moment":"2.29.4","semver":"7.3.8","request":"2.88.2","lazy-ass":"1.6.0","npm-utils":"2.0.3","console.table":"0.10.0","simple-bin-help":"1.8.0","check-more-types":"2.24.0","parse-github-repo-url":"1.4.1"},"preferGlobal":true,"_hasShrinkwrap":false,"devDependencies":{"gt":"0.10.0","grunt":"0.4.5","rocha":"2.5.10","pre-git":"3.17.1","matchdep":"2.0.0","standard":"11.0.1","grunt-cli":"1.2.0","git-issues":"1.3.1","time-grunt":"1.4.0","lcov-filter":"0.1.1","jshint-solid":"0.2.2","snap-shot-it":"5.0.1","jshint-stylish":"2.2.1","semantic-release":"20.1.1","grunt-nice-package":"0.10.4","grunt-contrib-jshint":"1.1.0","simple-commit-message":"4.0.3","condition-node-version":"1.3.0"},"_npmOperationalInternal":{"tmp":"tmp/available-versions_0.14.25_1740574961917_0.44824711272298745","host":"s3://npm-registry-packages-npm-production"},"readme":"# available-versions\n\nFetches new versions for a given NPM package higher than given version.\n\n[![NPM][available-versions-icon]][available-versions-url]\n\n[![ci](https://github.com/bahmutov/available-versions/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/bahmutov/available-versions/actions/workflows/ci.yml)\n[![semantic-release][semantic-image] ][semantic-url]\n[![manpm](https://img.shields.io/badge/manpm-%E2%9C%93-3399ff.svg)](https://github.com/bahmutov/manpm)\n\nfor Node >= 4\n\n## Install and use\n\n    npm install -g available-versions\n\nInstalls several aliases, use any one you like `available`, `versions`, `vers` or `releases`\n\nWhat are all releases for library `lazy-ass`?\n\n    releases lazy-ass\n\nWhat are new releases after `1.0.0`?\n\n    releases lazy-ass@1.0.0\n    releases lazy-ass 1.0.0\n\nThe module always exits with 0, even if the NPM module was not found.\n\n## Output\n\nA table with versions, timestamps and relative age\n\n```sh\n$ vers babel@6.1.15\nbabel since 6.1.15\n--------------------------\nversion  age      dist-tag\n-------  -------  --------\n6.1.16   a month\n6.1.17   a month\n6.1.18   a month\n6.2.4    19 days\n6.3.13   10 days  stable\n```\n\nFor most modules, it will also fetch release notes from GitHub, for example\n\n```sh\n$ vers manpm@1.10.0\nmanpm since 1.10.0 from git+https://github.com/bahmutov/manpm.git\n------------------------------------------------------------------------------------------------------------\nversion  age       release                                                                          dist-tag\n-------  --------  -------------------------------------------------------------------------------  --------\n1.10.1   8 months  github: parsing github url (a00ed3e7)\n1.10.2   6 months  node5: testing on node 4 and 5, fixed get, (0ffdc31a, closes #22)\n1.10.3   6 months  node: supporting older versions of node without harmony, (88ef0a4d, closes #21)\n1.10.4   6 months  log: removed extra console log statement (30d2da81)\n1.10.5   5 months  deps: upgraded a lot of deps, trying to see if #23 is still broken (2ed9051e)\n1.10.6   4 months  readme: fixed getting readme by downgrading simple-get, (e7e15a25, closes #24)   latest\n```\n\nThe comments are clipped and cleaned up to be a single line, I recommend\nusing [semantic-release](https://github.com/semantic-release/semantic-release)\nto make sure the output is useful.\n\n## API\n\nYou can use this module from other modules\n\n    var available = require('available-versions');\n    var query = {\n      name: 'deps-ok',\n      version: '0.1.0' // version is optional\n    };\n    available(query).then(function (result) {\n      console.log(result.name);\n      console.log(result.versions); // array of versions\n    });\n\nYou can also pass second argument to keep version cleanup error messages quiet\n\n    available(query, true) ...\n\n## Supported servers\n\nPublic and private NPM registries, GitHub (public) and GitLab\n(public and private) servers. For private GitLab server, you should have\nenvironment variable `GITLAB_AUTH_TOKEN` set with your\n[personal access token](https://gitlab.com/profile/account).\n\n```sh\nGITLAB_AUTH_TOKEN=xxxyyyy vers @org/my-module\n```\n\nI recommend using [as-a](https://github.com/bahmutov/as-a) to simplify\nusing environment variables. In this case you would do something like this\n\n```sh\nas-a gitlab vers @org/my-module\n```\n\n## Debug\n\nTo debug this program, run it with `DEBUG=vers` variable\n\n    DEBUG=vers releases chalk\n\n### Small print\n\nAuthor: Gleb Bahmutov &copy; 2014\n\n- [@bahmutov](https://twitter.com/bahmutov)\n- [glebbahmutov.com](https://glebbahmutov.com)\n- [blog](https://glebbahmutov.com/blog)\n- [videos](https://www.youtube.com/glebbahmutov)\n- [presentations](https://slides.com/bahmutov)\n- [cypress.tips](https://cypress.tips)\n- [Cypress Tips & Tricks Newsletter](https://cypresstips.substack.com/)\n- [my Cypress courses](https://cypress.tips/courses)\n\nLicense: MIT - do anything with the code, but don't blame me if it does not work.\n\nSpread the word: tweet, star on github, etc.\n\nSupport: if you find any problems with this module, email / tweet /\n[open issue](https://github.com/bahmutov/available-versions/issues?state=open) on Github\n\n## MIT License\n\nCopyright (c) 2014 Gleb Bahmutov\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n\n[available-versions-icon]: https://nodei.co/npm/available-versions.svg?downloads=true\n[available-versions-url]: https://npmjs.org/package/available-versions\n[semantic-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-url]: https://github.com/semantic-release/semantic-release\n","publish_time":1740574962075,"maintainers":[{"name":"bahmutov","email":"gleb.bahmutov@gmail.com"}],"_cnpm_publish_time":1740574962075,"dist-tags":{"latest":"0.14.28"}}