You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If path is called with an arrays of paths, return them as a merged array of processed paths.
Called with a Single Array
constpath=require('@nodewell/path')// called with a single arrayconstp=path(['@/','README.md'])console.log(p)// ===>/*[ 'absolute/path/to/project/README.md']*/
Called with Multiple Arrays
constpath=require('@nodewell/path')// called with a single arrayconstp=path(['@/README.md'],['@','/src/**/*.*'],)console.log(p)// ===>/*[ 'absolute/path/to/project/README.md', 'absolute/path/to/project/src/**/*.*'
]
*/
Called with Multiple Arrays Containing Path Suffix Arrays Including Glob Excludes
constpath=require('@nodewell/path')// called with a single arrayconstp=path(['@src',['/*.js','/internals/*.js']],['@/',['README.md','LICENSE.md','package.json']],['!@/package-lock.json'],['@/',['!.gitattributes','!.gitignore']])console.log(p)// ===>/*[ 'absolute/path/to/project/src/*.js', 'absolute/path/to/project/src/internals/*.js', 'absolute/path/to/project/README.md', 'absolute/path/to/project/LICENSE.md', 'absolute/path/to/project/package.json, '!absolute/path/to/project/package-lock.json, '!absolute/path/to/project/.gitattributes, '!absolute/path/to/project/.gitigmore,]*/
The text was updated successfully, but these errors were encountered:
If
path
is called with an arrays of paths, return them as a merged array of processed paths.Called with a Single Array
Called with Multiple Arrays
Called with Multiple Arrays Containing Path Suffix Arrays Including Glob Excludes
The text was updated successfully, but these errors were encountered: