FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
jamstack-cms/src/utils/getKeyWithPath.js at master · jamstack-cms/jamstack-cms · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
jamstack-cms
/
jamstack-cms
Public
Notifications
You must be signed in to change notification settings
Fork
67
Star
722
Code
Issues
11
Pull requests
22
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
jamstack-cms
/
src
/
utils
/
getKeyWithPath.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (7 loc) · 219 Bytes
Breadcrumbs
jamstack-cms
/
src
/
utils
/
getKeyWithPath.js
Copy path
File metadata and controls
8 lines (7 loc) · 219 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
import
getImageKey
from
'./getImageKey'
/* gets image with public/images path */
export
default
function
getKeyWithPath
(
url
)
{
const
key
=
getImageKey
(
url
)
const
keyWithPath
=
`images/
${
key
}
`
return
keyWithPath
}
Back
|
FazBrowse Home
|
New Git URL