The Enhanced Semantic Versioner for NPM
npm install @chatie/semver


!Linux Kernel Numbering
> Source: How do Linux Versions Work?
The Enhanced Semantic Versioner for NPM
This module is a wrapper of the NPM module semver, it provide following additional features:
1. Two CLI utils that will identify whether this VERSION is for production(stable) or development(unstable):
1. semver-is-prod
1. semver-id-dev
1. Added two methods to SemVer class:
1. isProd(version: string): boolean
1. isDev(version: string): boolean
1. TypeScript support. It contains the typing definations already
Learn more about the original semver from its GitHub homepage: semver
Copy from Linux Kernel Version Numbering -
> The second number denotes the major revision of the kernel version. It was formerly the case that even numbers indicated a stable release, that is, one that was deemed fit for production use (i.e., use in a non-experimental environment), such as 1.2, 2.4 or 2.6. Likewise, odd numbers, such as 1.1 or 2.5, have historically represented development releases. They were for testing new features and device drivers until they became sufficiently stable to be included in a stable release. However, this has changed starting with the Linux 2.6.x series, and new feature development now takes place in the same revision number.
Following the Semantic Versioning 2.0
Numbering rule:
1. even numbers, such as 0.8, 0.12 indicated a stable release, which is fit for production use.
1. odd numbers, such as 0.11 or 0.13, represented as development releases.
See also:
1. identify 2.0.0-alpha.1 as isDev
1. remove binary semver-is-dev because it might introduce bugs when using in devops. Use semver-is-prod instead.
1. Beta Release
1. Wrap semver
1. add new methods: isProd & isDev
1. add new binary: semver-is-prod & semver-is-dev
Huan LI (李卓桓) zixia@zixia.net

- Code & Docs © 2019 - now Huan LI zixia@zixia.net
- Code released under the Apache-2.0 License
- Docs released under Creative Commons