0.2.3 • Published 1 year ago

ubuntu-versions-table-pmb v0.2.3

Weekly downloads
1
License
ISC
Repository
github
Last release
1 year ago

ubuntu-versions-table-pmb

Static information about Ubuntu releases. Can find release by codename and vice versa.

Limitations

  • The database currently ignores:
    • Desktop-only versions.
    • Information about Extended Security Maintenance.
    • Dates

API

This module ESM-exports an object that holds these functions:

.byCodename(name)

Look up details about an Ubuntu version by codename.

.byVersion(ver)

Look up details about an Ubuntu version by version, given as a string.

.byVersion(year, month, patch)

Look up details about an Ubuntu version by version parts given as numbers.

.byRelease(rls)

Look up details about an Ubuntu version by release name, i.e. "year dot two-digit-month".

.mustFind(mtd, ...args)

Delegate to the method whose name is given in string mtd, passing arguments ...args, throw an error if the result is false-y.

Result data format for .by*()

see test/usage.mjs

.apt2rls(cn)

Efficient lookup the release name string by lowercase codename adjective (codenameApt).

Usage

see test/usage.mjs

Known issues

  • Needs more/better tests and docs.

 

License

ISC

0.2.3

1 year ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.0

4 years ago