Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d1ll0n/stack-packer
/ getExtension
Function
getExtension
src/project/paths.ts:4–4 ·
view source on GitHub ↗
(_path: string)
Source
from the content-addressed store, hash-verified
2
import
path from
'path'
;
3
4
export
const
getExtension = (_path: string) => path.parse(_path).ext;
5
6
export
const
isSolFile = (_path: string) => getExtension(_path) ===
'.sol'
;
7
Callers
3
getHardhatProjectInfo
Function · 0.90
isSolFile
Function · 0.85
isDir
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected