All Projects → ahmadnassri → node-glob-promise

ahmadnassri / node-glob-promise

Licence: MIT License
Promise version of glob

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to node-glob-promise

liblex
C library for Lexical Analysis
Stars: ✭ 25 (-41.86%)
Mutual labels:  lib
TinyMAT
C/C++ library to handle writing simple Matlab(r) MAT file
Stars: ✭ 22 (-48.84%)
Mutual labels:  lib
dtkcore
Deepin Toolkit, core module
Stars: ✭ 45 (+4.65%)
Mutual labels:  lib
react-lite
A simple implementation of react
Stars: ✭ 51 (+18.6%)
Mutual labels:  lib
logger-node
A nodejs logger client for LogDNA
Stars: ✭ 27 (-37.21%)
Mutual labels:  lib
Assembly-Lib
A 16-bits x86 DOS Assembly library that provides many useful functions for developing programs. It has both VGA grapics functions as well as general purpose utilities. The main purpose of this library was to be able to implement simple DOS games (in Assembly) using VGA (320x200, 256 colors) display.
Stars: ✭ 36 (-16.28%)
Mutual labels:  lib
teams-api
Unofficial Microsoft Teams Library
Stars: ✭ 92 (+113.95%)
Mutual labels:  lib
telegram-bot-api
This is an api-project for the telegram bot (HTTPS) api.
Stars: ✭ 16 (-62.79%)
Mutual labels:  lib
TinyTIFF
lightweight TIFF reader/writer library (C/C++)
Stars: ✭ 91 (+111.63%)
Mutual labels:  lib
nimffmpeg
Nim FFMpeg binding
Stars: ✭ 29 (-32.56%)
Mutual labels:  lib
node-api-problem
HTTP Problem Utility
Stars: ✭ 24 (-44.19%)
Mutual labels:  lib
reload
Simple managed reload mechanism for Go
Stars: ✭ 18 (-58.14%)
Mutual labels:  lib
dotty dict
Dictionary wrapper for quick access to deeply nested keys.
Stars: ✭ 67 (+55.81%)
Mutual labels:  lib
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-60.47%)
Mutual labels:  lib
TagEditText
A simple Android Tag EditText
Stars: ✭ 14 (-67.44%)
Mutual labels:  lib
jigjs
🧩 A front-end framework
Stars: ✭ 22 (-48.84%)
Mutual labels:  lib
client-js
JS client for polygon.io api
Stars: ✭ 81 (+88.37%)
Mutual labels:  lib
faker
Faker is a Nim package that generates fake data for you.
Stars: ✭ 28 (-34.88%)
Mutual labels:  lib
CockyGrabber
C# library for the collection of browser information such as cookies, logins, and more
Stars: ✭ 46 (+6.98%)
Mutual labels:  lib
nimjson
nimjson generates nim object definitions from json documents.
Stars: ✭ 37 (-13.95%)
Mutual labels:  lib

Promise version of glob

Match files using the patterns the shell uses, like stars and stuff.

license release super linter test semantic

Note: This is just a Promise wrapped version of glob

Install

$ npm install glob-promise glob
NOTE:

glob is set as a peerDependency in package.json

  • npm <= 2 will automatically install peerDependencies if they are not explicitly depended upon higher in the dependency tree.
  • npm >= 3 will no longer automatically install peerDependencies.

You will need to manually add glob as a dependency to your project for glob-promise to work.

API

glob(pattern [, options])

Alias for glob.promise

glob.promise(pattern [, options])

pattern: String (glob pattern) options: Object or String Return: Object (Promise)

When it finishes, it will be fulfilled with an Array of filenames as its first argument.

When it fails to read the files, it will be rejected with an error as its first argument.

glob('**/*')
  .then(function(contents) {
    contents; //=> ['lorem', 'ipsum', 'dolor']
  });

glob('{foo,bar.baz}.txt', { nobrace: true })
  .then(function(contents) {
    contents; //=> []
  });

glob.glob(pattern [, options], cb)

see glob

glob.sync(pattern [, options])

see glob.sync()

glob.hasMagic(pattern, [options])

see glob.hasMagic()

Class: glob.Glob

see Glob

options

The option object will be directly passed to glob.


Author: Ahmad Nassri • Twitter: @AhmadNassri

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].