Riven/riven/srcgen/node_modules/glob-promise/lib/index.js
Mingwei Samuel 74eb5fa045 Update example proxy for v2, use workspaces.
- `example/proxy` is new folder for `example_proxy`.
- `riven` is new folder for the main riven lib.
- Updated metadata to be an array and include HTTP method.
2021-09-09 14:31:39 -07:00

19 lines
450 B
JavaScript

'use strict'
const glob = require('glob')
const promise = function (pattern, options) {
return new Promise((resolve, reject) => {
glob(pattern, options, (err, files) => err === null ? resolve(files) : reject(err))
})
}
// default
module.exports = promise
// utility exports
module.exports.glob = glob
module.exports.Glob = glob.Glob
module.exports.hasMagic = glob.hasMagic
module.exports.promise = promise
module.exports.sync = glob.sync