{"_id":"@gulpjs/to-absolute-glob","_rev":"3950650","name":"@gulpjs/to-absolute-glob","description":"Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"time":{"modified":"2025-09-01T01:37:11.000Z","created":"2023-01-03T20:27:33.728Z","4.0.0":"2023-01-03T20:27:33.728Z"},"users":{},"author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-absolute-glob.git"},"versions":{"4.0.0":{"name":"@gulpjs/to-absolute-glob","version":"4.0.0","description":"Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.","author":{"name":"Gulp Team","email":"team@gulpjs.com","url":"https://gulpjs.com/"},"contributors":[{"name":"Blaine Bublitz","email":"blaine.bublitz@gmail.com"}],"repository":{"type":"git","url":"git+https://github.com/gulpjs/to-absolute-glob.git"},"license":"MIT","engines":{"node":">=10.13.0"},"main":"index.js","scripts":{"lint":"eslint .","pretest":"npm run lint","test":"nyc mocha"},"dependencies":{"is-negated-glob":"^1.0.0"},"devDependencies":{"eslint":"^7.32.0","eslint-config-gulp":"^5.0.1","eslint-plugin-node":"^11.1.0","expect":"^27.4.2","mocha":"^8.4.0","nyc":"^15.1.0"},"publishConfig":{"access":"public"},"nyc":{"reporter":["lcov","text-summary"]},"prettier":{"singleQuote":true},"keywords":["absolute","file","filepath","glob","negate","negative","path","pattern","resolve","to"],"gitHead":"dcde060a9caeba6baebf4dab980e87bb2e8a0028","bugs":{"url":"https://github.com/gulpjs/to-absolute-glob/issues"},"homepage":"https://github.com/gulpjs/to-absolute-glob#readme","_id":"@gulpjs/to-absolute-glob@4.0.0","_nodeVersion":"16.14.2","_npmVersion":"8.11.0","dist":{"shasum":"1fc2460d3953e1d9b9f2dfdb4bcc99da4710c021","size":2974,"noattachment":false,"key":"/@gulpjs/to-absolute-glob/-/@gulpjs/to-absolute-glob-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@gulpjs/to-absolute-glob/download/@gulpjs/to-absolute-glob-4.0.0.tgz"},"_npmUser":{"name":"phated","email":"blaine.bublitz@gmail.com"},"directories":{},"maintainers":[{"name":"phated","email":"blaine.bublitz@gmail.com"},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/to-absolute-glob_4.0.0_1672777653545_0.46843759437940036"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-01-03T20:27:38.239Z","publish_time":1672777653728,"_cnpm_publish_time":1672777653728}},"readme":"<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# @gulpjs/to-absolute-glob\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][ci-image]][ci-url] [![Coveralls Status][coveralls-image]][coveralls-url]\n\nMake a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.\n\n## Usage\n\n```js\nvar toAbsoluteGlob = require('@gulpjs/to-absolute-glob');\n\n// All these assume your cwd is `/dev/foo/`\n\ntoAbsoluteGlob('a/*.js') === '/dev/foo/a/*.js';\n\n// Makes a path absolute\ntoAbsoluteGlob('a') === '/dev/foo/a';\n\n// Retains trailing slashes\ntoAbsoluteGlob('a/*/') === '/dev/foo/a/*/';\n\n// Makes a negative glob absolute\ntoAbsoluteGlob('!a/*.js') === '!/dev/foo/a/*.js';\n\n// Accepts a cwd\ntoAbsoluteGlob('a/*.js', { cwd: 'foo' }) === '/dev/foo/foo/a/*.js';\n\n// Accepts a root path\ntoAbsoluteGlob('/a/*.js', { root: 'baz' }) === '/dev/foo/baz/a/*.js';\n```\n\n## API\n\n### `toAbsoluteGlob(glob, [options])`\n\nTakes a `glob` string and an optional `options` object and produces an absolute glob. If the glob is relative, the `root` or `cwd` option (or `process.cwd()` if neither specified) will be used as the base of the glob.\n\n## License\n\nMIT\n\n<!-- prettier-ignore-start -->\n[downloads-image]: https://img.shields.io/npm/dm/@gulpjs/to-absolute-glob.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/@gulpjs/to-absolute-glob\n[npm-image]: https://img.shields.io/npm/v/@gulpjs/to-absolute-glob.svg?style=flat-square\n\n[ci-url]: https://github.com/gulpjs/to-absolute-glob/actions?query=workflow:dev\n[ci-image]: https://img.shields.io/github/actions/workflow/status/gulpjs/to-absolute-glob/dev.yml?branch=master&style=flat-square\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/to-absolute-glob\n[coveralls-image]: https://img.shields.io/coveralls/gulpjs/to-absolute-glob/master.svg?style=flat-square\n<!-- prettier-ignore-end -->\n","_attachments":{},"homepage":"https://github.com/gulpjs/to-absolute-glob#readme","bugs":{"url":"https://github.com/gulpjs/to-absolute-glob/issues"},"license":"MIT"}