Socket
Socket
Sign inDemoInstall

@midwayjs/glob

Package Overview
Dependencies
1
Maintainers
7
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @midwayjs/glob

实现一个基础轻量的 globby,为了兼容 faas-glob 语法,引入纯 js 版的 picomatch 库,除此之外,无其他依赖。


Version published
Weekly downloads
1.9K
decreased by-31.09%
Maintainers
7
Created
Weekly downloads
 

Readme

Source

midway easy glob tools

实现一个基础轻量的 globby,为了兼容 faas-glob 语法,引入纯 js 版的 picomatch 库,除此之外,无其他依赖。

API

import { run } from '@midwayjs/glob';

const result = run(['**/*.md'], {
  cwd: join(__dirname, './fixtures/first'),
  ignore: [
    '**/c.md',
    '**/bbbb/**'
  ]
});
console.log(result); // Output: [ '/Users/harry/project/glob/test/fixtures/first/a.md' ]

FAQs

Last updated on 09 Feb 2023

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