within

tcmts.cli.libraries.within · #qnf7fm62 · term · runs anywhere

Whether path is mount or a name under it.

export const within = (path: string, mount: string): boolean =>
  path === mount || path.startsWith(`${mount}.`)

used by