UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

7 lines (5 loc) 186 B
function isPathDirName(filepath: string): boolean { // Check if the path has an extension, commonly indicating a file return !/\.\w+$/.test(filepath) } export default isPathDirName