mirror of
https://github.com/nodejs/node.git
synced 2025-08-18 23:28:49 +02:00

PR-URL: https://github.com/nodejs/node/pull/48514 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
7 lines
222 B
JavaScript
7 lines
222 B
JavaScript
'use strict'
|
|
|
|
const { glob } = require('glob')
|
|
const path = require('path')
|
|
|
|
const globify = (pattern) => pattern.split(path.win32.sep).join(path.posix.sep)
|
|
module.exports = (path, options) => glob(globify(path), options)
|