2.0.5 • Published 5 months ago
lambda-runtimes v2.0.5
AWS Lambda runtimes
A list of officially AWS Lambda runtimes organized by name
Installation
npm i lambda-runtimes
Usage
// esm
import {
runtimes,
runtimeVersions,
runtimeList,
runtimesByArchitecture,
architecturesByRuntime,
aliases,
retiredRuntimes,
} from 'lambda-runtimes'
// cjs
let {
runtimes,
runtimeVersions,
runtimeList,
runtimesByArchitecture,
architecturesByRuntime,
aliases,
retiredRuntimes,
} = require('lambda-runtimes')
lambda-runtimes
exports seven items:
runtimes
(object) - Lambda runtime strings, organized by runtime name- Example:
runtimes.node[0]
→nodejs20.x
- Where appropriate, each runtime may include (lowcase normalized) aliases, e.g.
runtimes.node
===runtimes.nodejs
===runtimes.['node.js']
- Example:
runtimeVersions
(object) - Semver representations of each Lambda runtime- Example:
runtimeVersions['nodejs20.x']
returns an object withmajor: '20'
,minor: null
,patch: null
, andwildcard: '20.*.*'
properties
- Example:
runtimeList
(array) - list of all Lambda runtime strings (order not necessarily guaranteed)runtimesByArchitecture
(object) - list of Lambda runtimes supported by each CPU architecture- Example:
runtimesByArchitecture.arm64[0]
→nodejs20.x
)
- Example:
architecturesByRuntime
(object) - list of Lambda CPU architectures supported by each runtime- Example:
architecturesByRuntime['nodejs20.x']
→[ 'arm64', 'x86_64' ]
)
- Example:
aliases
(object) - shorthand or alternate names for runtime aliases (e.g.py
forpython
)retiredRuntimes
(object) - retired / EOL Lambda runtime strings, organized by runtime name- Example:
retiredRuntimes.node[0]
→nodejs10.x
- Example:
Example:
{
runtimes: {
node: [ 'nodejs20.x', 'nodejs18.x' ],
...
},
runtimeVersions: {
'nodejs20.x': { major: '20', minor: null, patch: null, wildcard: '20.*.*' },
...
},
runtimeList: [ 'nodejs20.x', 'nodejs18.x', ... ],
runtimesByArchitecture: {
arm64: [ 'nodejs20.x', 'nodejs18.x', ... ],
x86_64: [ 'nodejs20.x', 'nodejs18.x', ... ]
},
architecturesByRuntime: {
'nodejs20.x': [ 'arm64', 'x86_64' ],
'nodejs18.x': [ 'arm64', 'x86_64' ],
...
},
aliases: {
nodejs: 'node',
...
},
retiredRuntimes: {
node: [ 'nodejs10.x', ... ],
...
},
}
Resources
2.0.3
6 months ago
2.0.5
5 months ago
2.0.4
5 months ago
2.0.2
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago
0.0.0
4 years ago