@augment-vir/node
Version:
A collection of augments, helpers types, functions, and classes only for Node.js (backend) JavaScript environments.
17 lines (16 loc) • 594 B
TypeScript
import { type PartialWithUndefined } from '@augment-vir/common';
/**
* Checks to see if a potential child path is inside of a potential parent path.
*
* @category Path : Node
* @category Package : @augment-vir/node
* @package [`@augment-vir/node`](https://www.npmjs.com/package/@augment-vir/node)
*/
export declare function doesPathContain(potentialParentPath: string, potentialChildPath: string, options?: PartialWithUndefined<{
/**
* Set this to `true` to return `true` if the paths are exactly equal.
*
* @default false
*/
allowSelf: boolean;
}>): boolean;