Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

glob-parent

Package Overview
Dependencies
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-parent

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

  • 6.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
91M
decreased by-9.32%
Maintainers
5
Weekly downloads
 
Created

What is glob-parent?

The glob-parent npm package is used to extract the non-magic parent path from a glob string, which is useful for determining the directory that a glob is intended to match against, for ensuring consistent behavior in file watching and globbing.

What are glob-parent's main functionalities?

Extracting non-magic parent path from a glob string

This feature allows you to get the directory path without any glob patterns, which is useful for file operations that require a base directory.

const globParent = require('glob-parent');

console.log(globParent('path/to/*.js')); // Output: 'path/to'

Other packages similar to glob-parent

Keywords

FAQs

Package last updated on 29 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc