1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/tests/registry/npm/semver/registry.json

2 lines
27 KiB
JSON
Raw Normal View History

{"name":"semver","description":"The semantic version parser used by npm.","dist-tags":{"latest":"7.6.2"},"versions":{"7.6.2":{"name":"semver","version":"7.6.2","author":{"name":"GitHub Inc."},"license":"ISC","_id":"semver@7.6.2","bugs":{"url":"https://github.com/npm/node-semver/issues"},"bin":{"semver":"bin/semver.js"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"],"timeout":30,"coverage-map":"map.js"},"dist":{"shasum":"1e3b34759f896e8f14d6134732ce798aeb0c6e13","tarball":"http://localhost:4260/semver/semver-7.6.2.tgz","fileCount":52,"integrity":"sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==","signatures":[{"sig":"MEYCIQD6/pwdiEu5Ip6DyQ8rwsJ13wLppdOMIDtJOClcLbK+nwIhAMgA4McQIu/+mVtitzpO97NIKFlLAt+8ABL6dnMipilm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"http://localhost:4260/attestations/semver@7.6.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":95424},"main":"index.js","engines":{"node":">=10"},"gitHead":"eb1380b1ecd74f6572831294d55ef4537dfe1a2a","scripts":{"lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","snap":"tap","test":"tap","lintfix":"npm run lint -- --fix","postlint":"template-oss-check","posttest":"npm run lint","template-oss-apply":"template-oss-apply --force"},"repository":{"url":"git+https://github.com/npm/node-semver.git","type":"git"},"_npmVersion":"10.7.0","description":"The semantic version parser used by npm.","directories":{},"templateOSS":{"engines":">=10","publish":"true","version":"4.22.0","distPaths":["classes/","functions/","internal/","ranges/","index.js","preload.js","range.bnf"],"allowPaths":["/classes/","/functions/","/internal/","/ranges/","/index.js","/preload.js","/range.bnf","/benchmarks"],"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten."},"_nodeVersion":"22.1.0","_hasShrinkwrap":false,"devDependencies":{"tap":"^16.0.0","benchmark":"^2.1.4","@npmcli/template-oss":"4.22.0","@npmcli/eslint-config":"^4.0.0"}}},"author":{"name":"GitHub Inc."},"repository":{"url":"git+https://github.com/npm/node-semver.git","type":"git"},"license":"ISC","homepage":"https://github.com/npm/node-semver#readme","bugs":{"url":"https://github.com/npm/node-semver/issues"},"readme":"semver(1) -- The semantic versioner for npm\n===========================================\n\n## Install\n\n```bash\nnpm install semver\n````\n\n## Usage\n\nAs a node module:\n\n```js\nconst semver = require('semver')\n\nsemver.valid('1.2.3') // '1.2.3'\nsemver.valid('a.b.c') // null\nsemver.clean(' =v1.2.3 ') // '1.2.3'\nsemver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true\nsemver.gt('1.2.3', '9.8.7') // false\nsemver.lt('1.2.3', '9.8.7') // true\nsemver.minVersion('>=1.0.0') // '1.0.0'\nsemver.valid(semver.coerce('v2')) // '2.0.0'\nsemver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'\n```\n\nYou can also just load the module for the function that you care about if\nyou'd like to minimize your footprint.\n\n```js\n// load the whole API at once in a single object\nconst semver = require('semver')\n\n// or just load the bits you need\n// all of them listed here, just pick and choose what you want\n\n// classes\nconst SemVer = require('semver/classes/semver')\nconst Comparator = require('semver/classes/comparator')\nconst Range = require('semver/classes/range')\n\n// functions for working with versions\nconst semverParse = require('semver/functions/parse')\nconst semverValid = require('semver/functions/valid')\nconst semverClean = require('semver/functions/clean')\nconst semverInc = require('semver/functions/inc')\nconst semverDiff = require('semver/functions/diff')\nconst semverMajor = require('semver/functions/major')\nconst semverMinor = require('semver/functions/minor')\nconst semverPatch = require('semver/functions/patch')\nconst semverPrerelease = require('semver/functions/prerelease')\nconst semverCompare = require('semver/functions/compare')\nconst semverRcompare = require('semver/functions/rcompare')\nconst semverCompareLoos