MCPcopy
hub / github.com/serverless/serverless / getOS

Function getOS

packages/sf-core-installer/binary.js:223–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221}
222
223const getOS = () => {
224 const osType = os.type()
225
226 if (osType === 'Darwin') {
227 return 'darwin'
228 } else if (osType === 'Linux') {
229 return 'linux'
230 }
231
232 return 'windows'
233}
234
235const getBinaryName = () => {
236 const osType = getOS()

Callers 1

getBinaryNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…