Orders two x.y.z versions: negative when a is older, positive when newer. It decides which of two coexisting versions of a package owns the plain packageId:id name.
x.y.z
a
packageId:id
import { compareVersions } from '@datamoc/mwg/mwl';console.log(compareVersions('1.2.0', '1.10.0') < 0); // true Copy
import { compareVersions } from '@datamoc/mwg/mwl';console.log(compareVersions('1.2.0', '1.10.0') < 0); // true
Orders two
x.y.zversions: negative whenais older, positive when newer. It decides which of two coexisting versions of a package owns the plainpackageId:idname.