معرفی شرکت ها


to-absolute-glob-3.0.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
ویژگی مقدار
سیستم عامل -
نام فایل to-absolute-glob-3.0.0
نام to-absolute-glob
نسخه کتابخانه 3.0.0
نگهدارنده ['phated', 'jonschlinkert', 'doowb']
ایمیل نگهدارنده ['blaine.bublitz@gmail.com', 'github@sellside.com', 'brian.woodward@gmail.com']
نویسنده Jon Schlinkert
ایمیل نویسنده -
آدرس صفحه اصلی git+https://github.com/jonschlinkert/to-absolute-glob.git
آدرس اینترنتی https://github.com/jonschlinkert/to-absolute-glob
مجوز MIT
# to-absolute-glob [![NPM version](https://img.shields.io/npm/v/to-absolute-glob.svg?style=flat)](https://www.npmjs.com/package/to-absolute-glob) [![NPM downloads](https://img.shields.io/npm/dm/to-absolute-glob.svg?style=flat)](https://npmjs.org/package/to-absolute-glob) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/to-absolute-glob.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/to-absolute-glob) [![Windows Build Status](https://img.shields.io/appveyor/ci/jonschlinkert/to-absolute-glob.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/jonschlinkert/to-absolute-glob) > Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled. ## Install Install with [npm](https://www.npmjs.com/): ```sh npm install to-absolute-glob ``` Or install with [yarn](https://yarnpkg.com/): ```sh yarn add to-absolute-glob ``` ## Usage ```js const toAbsGlob = require('to-absolute-glob'); toAbsGlob('a/*.js'); //=> '/dev/foo/a/*.js' ``` ## Examples Given the current project folder (cwd) is `/dev/foo/`: **makes a path absolute** ```js toAbsGlob('a'); //=> '/dev/foo/a' ``` **makes a glob absolute** ```js toAbsGlob('a/*.js'); //=> '/dev/foo/a/*.js' ``` **retains trailing slashes** ```js toAbsGlob('a/*/'); //=> '/dev/foo/a/*/' ``` **retains trailing slashes with cwd** ```js toAbsGlob('./fixtures/whatsgoingon/*/', {cwd: __dirname}); //=> '/dev/foo/' ``` **makes a negative glob absolute** ```js toAbsGlob('!a/*.js'); //=> '!/dev/foo/a/*.js' ``` **from a cwd** ```js toAbsGlob('a/*.js', {cwd: 'foo'}); //=> '/dev/foo/foo/a/*.js' ``` **makes a negative glob absolute from a cwd** ```js toAbsGlob('!a/*.js', {cwd: 'foo'}); //=> '!/dev/foo/foo/a/*.js' ``` **from a root path** ```js toAbsGlob('/a/*.js', {root: 'baz'}); //=> '/dev/foo/baz/a/*.js' ``` **from a root slash** ```js toAbsGlob('/a/*.js', {root: '/'}); //=> '/dev/foo/a/*.js' ``` **from a negative root path** ```js toAbsGlob('!/a/*.js', {root: 'baz'}); //=> '!/dev/foo/baz/a/*.js' ``` **from a negative root slash** ```js toAbsGlob('!/a/*.js', {root: '/'}); //=> '!/dev/foo/a/*.js' ``` ## About ### Related projects * [has-glob](https://www.npmjs.com/package/has-glob): Returns `true` if an array has a glob pattern. | [homepage](https://github.com/jonschlinkert/has-glob "Returns `true` if an array has a glob pattern.") * [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet") * [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob "Return true if a value is a valid glob pattern or patterns.") ### Contributing Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). ### Contributors | **Commits** | **Contributor**<br/> | | --- | --- | | 16 | [doowb](https://github.com/doowb) | | 15 | [jonschlinkert](https://github.com/jonschlinkert) | | 1 | [phated](https://github.com/phated) | | 1 | [erikkemperman](https://github.com/erikkemperman) | ### Building docs _(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ To generate the readme and API documentation with [verb](https://github.com/verbose/verb): ```sh $ npm install -g verb verb-generate-readme && verb ``` ### Running tests Install dev dependencies: ```sh $ npm install -d && npm test ``` ### Author **Jon Schlinkert** * [github/jonschlinkert](https://github.com/jonschlinkert) * [twitter/jonschlinkert](http://twitter.com/jonschlinkert) ### License Copyright (c) [Jon Schlinkert](https://github.com/jonschlinkert). Released under the [MIT license](https://github.com/jonschlinkert/to-absolute-glob/blob/master/LICENSE). *** _This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v3.0.0, on November 17, 2022._


نیازمندی

مقدار نام
^1.0.0 is-absolute
^1.0.0 is-negated-glob


زبان مورد نیاز

مقدار نام
18.3.0 Npm


نحوه نصب


نصب پکیج tgz to-absolute-glob-3.0.0:

    npm install to-absolute-glob-3.0.0.tgz