MCPcopy Index your code
hub / github.com/serverless/serverless / filenameFromPath

Function filenameFromPath

packages/sf-core/src/utils/https/index.js:400–400  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

398 * Helper function to get the filename from a URL path
399 */
400const filenameFromPath = (res) => path.basename(new URL(res.url).pathname)
401
402/**
403 * Helper function to get the file extension from MIME type

Callers 1

getFilenameFunction · 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…