New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-glob-resolve

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-glob-resolve

Takes a single glob, or an array of globs and returns the paths to the resolved files relative to a folder.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

node-glob-resolve

Takes a single glob, or an array of globs and returns the paths to the resolved files relative to a folder. Files are only added once, and they are returned in the order of the globs. Especially useful for using packages that does not support globs with for example gulp.

Example:

  var globResolve = require('node-glob-resolve');
  globResolve([
    '/scripts/main.js',
    '/scripts/second/**/*.js',
    '/scripts/**/*.js'
  ], __dirname);
  // Returns 
  //[
  //    '/scripts/main.js',
  //    '/scripts/second/a.js',
  //    '/scripts/second/b.js',
  //    '/scripts/the_rest_of_the_files.js',
  //]

TODO

  • Document
  • Add support for async

Keywords

gulp

FAQs

Package last updated on 08 Nov 2014

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