MCPcopy 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

2import path from 'path';
3
4export const getExtension = (_path: string) => path.parse(_path).ext;
5
6export const isSolFile = (_path: string) => getExtension(_path) === '.sol';
7

Callers 3

getHardhatProjectInfoFunction · 0.90
isSolFileFunction · 0.85
isDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected