3.0.1 • Published 3 years ago

ls-remote-versions v3.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
3 years ago

ls-remote-versions

Renovate enabled

ci

A tool to list the versions available on your registry by semver range. Great for all those behind the firewall as you may not have all the versions that the public registry has.

installation

npm install -g ls-remote-versions

usage

ls-remote-versions <package-name>

example

ls-remote-versions express

will list all of the versions of express in your registry satisfying the semver range as implemented in semver

example

ls-remote-versions express 4

example

ls-remote-versions express '4.0.x'

example

ls-remote-versions express '4 - 5'
express
4.15.0
4.15.1
4.15.2
4.15.3
4.15.4
4.15.5
...

will list all of the versions of express in your registry that match the semver range 4

This may be used as part of a program

import ls from "ls-remote-versions/src/index.js";

ls('debug', '2').then(result => console.log(result));

Note the importing code type is specified as a module.

Advanced usage to diff registries

ls-remote-versions <package-name> -r otherRegistryUrl

example

ls-remote-versions node-sass -r http://localhost:4873

This will log out all the registry and diff versions in the alternate registry. In this case a local registry hosted using verdaccio

features

  • tested on node 14 onwards
  • alternative to npm view versions which does not search
  • great for corporate use behind the firewall
  • takes semver range as a second arg to enable registry searches
  • use the registry as defined in npm config get registry
  • can be required in a program

notes

This is a search based alternative to npm view versions tool.

This tool is intended to aid the diagnosis of installation issues for users using a private registry. That may not have all the versions of a package that are available on the public registries.

It will use the registry set in the npm configuration ( usually registry.npmjs.org, but which can be set to anything )

Please use npm config list or npm config get registry to see your current settings.

3.0.1

3 years ago

3.0.0

3 years ago

2.0.3

3 years ago

1.4.35

3 years ago

1.4.31

3 years ago

1.4.29

3 years ago

1.4.23

4 years ago

1.4.21

4 years ago

1.4.19

4 years ago

1.4.17

4 years ago

1.4.10

4 years ago

1.4.7

4 years ago

1.4.6

4 years ago

1.4.5

4 years ago

1.4.2

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago