glob-parent

  • Version 7.0.0
  • Published
  • 8.19 kB
  • 1 dependency
  • ISC license

Install

npm i glob-parent
yarn add glob-parent
pnpm add glob-parent

Overview

Extract the non-magic parent path from a glob string.

Index

Functions

Functions

function globParent

globParent: (glob: string) => string;
  • Extracts the non-magic parent path from a glob string.

    Parameter glob

    The glob string.

    Returns

    The non-magic portion of the provided glob string.

Package Files (1)

Dependencies (1)

Dev Dependencies (4)

Peer Dependencies (0)

No peer dependencies.

Badge

To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/glob-parent.

  • Markdown
    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/glob-parent)
  • HTML
    <a href="https://www.jsdocs.io/package/glob-parent"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>