1. globjoin
Join paths and globs.
globjoin
Package: globjoin
Created by: amobiz
Last modified: Sat, 18 Jun 2022 12:58:17 GMT
Version: 0.1.4
License: MIT
Downloads: 15,944,813
Repository: https://github.com/amobiz/globjoin

Install

npm install globjoin
yarn add globjoin

globjoin

Join paths and globs.

MIT npm version David Dependency Badge

NPM NPM

Install

 $ npm install globjoin

API

globjoin(globs...)

Join paths and globs.

Like Node's path.join() that join all arguments together and normalize the resulting path, globjoin takes arbitrary number of paths and/or arrays of paths, join them together and take care of negative globs.

Context

Don't care.

Parameters

paths/globs

The paths/globs or arrays of paths/globs to join.

Returns

The result glob, or array of globs if any of paths/globs are array.

Example

 var join = require('globjoin');
var globs1 = join(__dirname, ['**/*.js', '!**/test*.js']);
var globs2 = join('test', 'fixture', 'app', ['views', '!services'], ['**/*', '!*.{js,json,coffee,ts}']);

Check out test for more examples.

Issues

Issues

Test

 $ npm test

Changelog

Changelog

License

MIT

Author

Amobiz

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin