npm Version Range Tester
Check a list of versions against an npm dependency range. Compare a current and proposed range to see which versions would change.
Test version ranges
- Enter one npm range, or switch to comparison and enter two.
- Paste the versions, one per line. Choose whether to include prereleases.
- Run the test, review the verdicts and copy the list you need.
How versions match
A version must meet all comparators in one range alternative.
With default npm rules, a prerelease can be excluded even when it meets the comparison bounds.
Comparison counts describe the versions you supplied. Newly allowed versions match the proposed range alone.
Examples
Changing a range from ^1.2.3 to ~1.4.0 keeps 1.4.2 and drops 1.5.0 from the supplied list.
With default settings, 1.x excludes 1.0.0-beta.1. Including prereleases changes its lower bound and allows that entry.
Range and list limits
Use npm range expressions and complete versions. The tester accepts up to 64 nonempty entries and bounds the numbers used in comparison.
The result checks the supplied version list using the pinned npm range rules.
Local testing
Your browser tests pasted ranges and versions on your device.
npm version range questions
Sources
These references define version syntax and npm range matching.
- semver.orgSemantic Versioning 2.0.0Defines complete versions, precedence, prerelease identifiers and build metadata.
- github.comnpm range rules · node-semver 7.8.5Documents npm’s range syntax and prerelease rules. This tool uses the pinned version of the parser.
- node-semver license (ISC)
Reviewed 19 November 2026.
Related tools
CSS Filter Generator
Order and repeat CSS effects, compare a specimen and copy the exact filter declaration.
Open tool — CSS Filter GeneratorFluid Font Size Calculator
Create root-relative CSS from viewport endpoints and inspect the copied size model.
Open tool — Fluid Font Size CalculatorCSS Button Generator
Style native button states, inspect keyboard focus and copy HTML and CSS.
Open tool — CSS Button GeneratorCSS Border Generator
Create borders with independent styles, widths, colors and opacity on all four sides.
Open tool — CSS Border GeneratorCSS Specificity Calculator
Compare CSS selector scores and see which parts contribute to each tuple.
Open tool — CSS Specificity CalculatorCSS Background Pattern Generator
Create editable stripes, grids, dots and checkerboards. Preview colors and transparency locally, then copy the current CSS declarations.
Open tool — CSS Background Pattern GeneratorCSS Clip Path Generator
Edit polygon points and basic shapes, preview the clipping and copy CSS.
Open tool — CSS Clip Path GeneratorCSS Border Radius Generator
Edit eight corner radii, preview a box and copy CSS in pixels or percentages.
Open tool — CSS Border Radius GeneratorCSS Grid Generator
Build a bounded CSS Grid example with editable tracks, placement and named areas. Preview it, copy CSS or HTML and download the same standalone example.
Open tool — CSS Grid GeneratorCSS Flexbox Generator
Build a Flexbox example with container and item controls, explicit layout axes, matching CSS and HTML, and a local complete-example download.
Open tool — CSS Flexbox GeneratorCSS Text Shadow Generator
Build ordered text shadows, preview plain text and copy exact CSS.
Open tool — CSS Text Shadow GeneratorCSS Transform Generator
Compose repeatable 2D CSS transforms, edit px or percentage translation and origin, inspect a reference box and copy the exact current declarations.
Open tool — CSS Transform GeneratorCSS Cubic Bezier Generator
Edit CSS cubic-bezier curves with coordinates, visual handles and presets. Inspect overshoot, run a deliberate comparison with linear motion, and copy easing CSS.
Open tool — CSS Cubic Bezier GeneratorCSS Box Shadow Generator
Create ordered CSS box-shadow layers with a live preview and copyable code.
Open tool — CSS Box Shadow GeneratorHTML to Markdown
Convert pasted or local HTML into Markdown, review conversion notes, and copy or download the result.
Open tool — HTML to MarkdownJavaScript Regex Tester
Test a JavaScript pattern locally and inspect matches, captures, and UTF-16 positions.
Open tool — JavaScript Regex TesterMarkdown to HTML
Convert a Markdown draft to an HTML fragment, inspect the source and inert preview, then copy or download it.
Open tool — Markdown to HTMLCSS Gradient Generator
Create linear or radial CSS gradients with editable colors, opacity and stops.
Open tool — CSS Gradient GeneratorColor Converter
Convert supported sRGB HEX, RGB and HSL literals with alpha, explicit precision and current code Copy.
Open tool — Color ConverterHTML Entity Encoder/Decoder
Encode or decode literal HTML references with explicit context, Unicode options and LF output, without parsing or rendering markup.
Open tool — HTML Entity Encoder/DecoderMarkdown Table Generator
Edit a small literal-text table, set alignment and copy GFM Markdown or import tab-separated text.
Open tool — Markdown Table GeneratorHTML Table Generator
Build a rectangular table with captions and headers, then copy HTML and CSS.
Open tool — HTML Table GeneratorQuery String Parser & Builder
Edit ordered URL parameters, retain repeated names and copy a normalized query or HTTP(S) URL.
Open tool — Query String Parser & BuilderURL Encoder & Decoder
Convert a UTF-8 URL component or form value with explicit space and plus rules, then copy or download the result.
Open tool — URL Encoder & Decoder