MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / isSolFile

Function isSolFile

src/project/paths.ts:6–6  ·  view source on GitHub ↗
(_path: string)

Source from the content-addressed store, hash-verified

4export const getExtension = (_path: string) => path.parse(_path).ext;
5
6export const isSolFile = (_path: string) => getExtension(_path) === '.sol';
7
8export const isDir = (_path: string) => !Boolean(getExtension(_path));
9

Callers 4

getPathsFunction · 0.90
cli.tsFile · 0.90
getInputFilesFunction · 0.90
createLibraryMethod · 0.90

Calls 1

getExtensionFunction · 0.85

Tested by

no test coverage detected