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

glob-parent

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

glob-parent

Strips glob magic from a string to provide the parent path

  • 1.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
76M
decreased by-26.38%
Maintainers
1
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 18 Sep 2015

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