Translates the terms of the Node.js Package Maintenance working group's
package support document
to the aliases @nodevu/ranges takes.
Note
This module isn't published to npm yet.
Pass the result straight to ranges():
const ranges = require('@nodevu/ranges'); const translate = require('@nodevu/translate'); const supported = await ranges(await translate('supported'));
translate(alias): Promise<string[]>
Attributes
Rejects with an Error for any other term. The terms translate to:
| Term | Aliases |
|---|---|
current | ['current'] |
lts_latest | ['lts/latest'] |
lts | ['lts/active', 'lts/maintenance'] |
supported | ['current', 'lts/active', 'lts/maintenance'] |
all | ['current', 'lts/active', 'lts/maintenance', 'eol'] |