Socket
Socket
Sign inDemoInstall

@types/minimatch

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @types/minimatch

TypeScript definitions for minimatch


Version published
Weekly downloads
17M
increased by0.69%
Maintainers
1
Install size
12.2 kB
Created
Weekly downloads
 

Package description

What is @types/minimatch?

The @types/minimatch package provides TypeScript type definitions for the minimatch library, which is a utility for matching strings against Unix shell style patterns. It enables developers to use minimatch in TypeScript projects with type checking, enhancing development experience by providing autocompletion and error checking based on the expected types of minimatch's functions and options.

What are @types/minimatch's main functionalities?

Pattern Matching

Match strings against a specified glob pattern. This is useful for filtering file names, paths, or other strings according to a pattern defined in a way similar to Unix shell commands.

import minimatch from 'minimatch';

const match = minimatch('path/to/file.js', '*.js');
console.log(match); // true or false

Using Options

Customize the matching behavior using options. For example, 'nocase' enables case-insensitive matching. This allows for more flexible and powerful string matching based on specific requirements.

import minimatch from 'minimatch';

const options = { nocase: true };
const match = minimatch('path/to/FILE.js', '*.js', options);
console.log(match); // true

Other packages similar to @types/minimatch

Readme

Source

Installation

npm install --save @types/minimatch

Summary

This package contains type definitions for minimatch (https://github.com/isaacs/minimatch).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/minimatch.

Additional Details

  • Last updated: Wed, 31 Aug 2022 17:32:44 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by vvakame, Shant Marouti, and BendingBender.

FAQs

Last updated on 31 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc